|
@@ -12,9 +12,11 @@ import com.jeeplus.common.utils.StringUtils;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.modules.act.entity.Act;
|
|
import com.jeeplus.modules.act.entity.Act;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
|
|
+import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
import com.jeeplus.modules.sys.entity.Office;
|
|
import com.jeeplus.modules.sys.entity.Office;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.service.OfficeService;
|
|
import com.jeeplus.modules.sys.service.OfficeService;
|
|
|
|
+import com.jeeplus.modules.sys.utils.DictUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.sys.utils.UserUtils;
|
|
import com.jeeplus.modules.sysmtree.service.SysMtreeService;
|
|
import com.jeeplus.modules.sysmtree.service.SysMtreeService;
|
|
import com.jeeplus.modules.workactivity.service.ActivityService;
|
|
import com.jeeplus.modules.workactivity.service.ActivityService;
|
|
@@ -135,6 +137,13 @@ public class WorkLeaveController extends BaseController {
|
|
workStaffBasicInfo = workStaffBasicInfoService.getByUserOffice(workStaffBasicInfo);
|
|
workStaffBasicInfo = workStaffBasicInfoService.getByUserOffice(workStaffBasicInfo);
|
|
workLeave.setWorkStaffBasicInfo(workStaffBasicInfo);
|
|
workLeave.setWorkStaffBasicInfo(workStaffBasicInfo);
|
|
}
|
|
}
|
|
|
|
+ List<MainDictDetail> cardTypes = DictUtils.getMainDictList("card_type");
|
|
|
|
+ for (MainDictDetail mainDictDetail: cardTypes) {
|
|
|
|
+ if (mainDictDetail.getValue().equals(workLeave.getCar())) {
|
|
|
|
+ workLeave.setCar(mainDictDetail.getLabel());
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
model.addAttribute("workLeave", workLeave);
|
|
model.addAttribute("workLeave", workLeave);
|
|
return "modules/workleave/"+view;
|
|
return "modules/workleave/"+view;
|
|
}
|
|
}
|