|
@@ -16,6 +16,7 @@ import com.jeeplus.common.utils.ThisLocalityDownloadUtil;
|
|
import com.jeeplus.common.utils.excel.ExportExcel;
|
|
import com.jeeplus.common.utils.excel.ExportExcel;
|
|
import com.jeeplus.common.utils.excel.ImportExcel;
|
|
import com.jeeplus.common.utils.excel.ImportExcel;
|
|
import com.jeeplus.common.web.BaseController;
|
|
import com.jeeplus.common.web.BaseController;
|
|
|
|
+import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
import com.jeeplus.modules.sys.entity.Role;
|
|
import com.jeeplus.modules.sys.entity.Role;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.entity.User;
|
|
import com.jeeplus.modules.sys.service.RoleService;
|
|
import com.jeeplus.modules.sys.service.RoleService;
|
|
@@ -30,6 +31,7 @@ import com.jeeplus.modules.workprojectnotify.service.WorkProjectNotifyService;
|
|
import com.jeeplus.modules.workreceiptsregister.entity.ResponseEntity;
|
|
import com.jeeplus.modules.workreceiptsregister.entity.ResponseEntity;
|
|
import com.jeeplus.modules.workrelationship.entity.WorkRelationship;
|
|
import com.jeeplus.modules.workrelationship.entity.WorkRelationship;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffBasicInfo;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffBasicInfo;
|
|
|
|
+import com.jeeplus.modules.workstaff.entity.WorkStaffCertificate;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffCertificateImport;
|
|
import com.jeeplus.modules.workstaff.entity.WorkStaffCertificateImport;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffBasicInfoService;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffBasicInfoService;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffCertificateService;
|
|
import com.jeeplus.modules.workstaff.service.WorkStaffCertificateService;
|
|
@@ -201,6 +203,16 @@ public class WorkStaffBasicInfoController extends BaseController {
|
|
if(StringUtils.isNotBlank(workStaffBasicInfo.getId())){
|
|
if(StringUtils.isNotBlank(workStaffBasicInfo.getId())){
|
|
workStaffBasicInfoService.queryDetails(workStaffBasicInfo);
|
|
workStaffBasicInfoService.queryDetails(workStaffBasicInfo);
|
|
}
|
|
}
|
|
|
|
+ List<WorkStaffCertificate> certificateList = workStaffBasicInfo.getCertificateList();
|
|
|
|
+ List<MainDictDetail> certificateType = DictUtils.getMainDictList("certificate_type");
|
|
|
|
+ for (MainDictDetail type : certificateType) {
|
|
|
|
+ for (WorkStaffCertificate info: certificateList) {
|
|
|
|
+ if(info.getName().equals(type.getValue())){
|
|
|
|
+ info.setName(type.getLabel());
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
Role role = roleService.get(roleService.getRoleIdByUserId(workStaffBasicInfo.getUserId()));
|
|
Role role = roleService.get(roleService.getRoleIdByUserId(workStaffBasicInfo.getUserId()));
|
|
workStaffBasicInfo.setRoleId(role.getId());
|
|
workStaffBasicInfo.setRoleId(role.getId());
|
|
workStaffBasicInfo.setRoleName(role.getName());
|
|
workStaffBasicInfo.setRoleName(role.getName());
|