|
@@ -992,10 +992,10 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
String businessId = enrollmentUserInfoAudit.getId();
|
|
|
String title = enrollmentUserInfoAudit.getName() + "发起了- [" + enrollmentUserInfoAudit.getName() + "员工信息完善]";
|
|
|
//根据角色查用户信息
|
|
|
- //RoleDTO roleDTO = SpringUtil.getBean(IRoleApi.class).getRoleDTOByName2("实习信息审核员");
|
|
|
- //String assignee = getAssignee(roleDTO.getId());
|
|
|
+ RoleDTO roleDTO = SpringUtil.getBean(IRoleApi.class).getRoleDTOByName2("实习信息审核员");
|
|
|
+ String assignee = getAssignee(roleDTO.getId());
|
|
|
String recordType = "";
|
|
|
- Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title,"", recordType);
|
|
|
+ Map<String, String> newMap = pingMap(procDefId, procDefKey, businessTable, businessId, title,assignee, recordType);
|
|
|
newMap.put("userId",registrationData.getUserId());
|
|
|
allMap.put("员工信息审批", newMap);
|
|
|
SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
@@ -1008,7 +1008,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardBack(), "idCardBack", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
|
saveEnrollmentDetailInfo(registrationData);
|
|
|
} else {
|
|
|
- updateEnrollmentDetailInfo(registrationData);
|
|
|
+ updateEnrollmentDetailInfo(registrationData,"2");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
throw new RuntimeException(e);
|
|
@@ -1100,12 +1100,12 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void updateEnrollmentDetailInfo(EnrollmentRegistration dto) {
|
|
|
+ public void updateEnrollmentDetailInfo(EnrollmentRegistration dto,String status) {
|
|
|
// 教育经历
|
|
|
List<EnrollmentEduInfo> eduList = dto.getEduInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(eduList)) {
|
|
|
eduList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
eduInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1114,7 +1114,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentWorkInfo> workList = dto.getWorkInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(workList)) {
|
|
|
workList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
workInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1124,7 +1124,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
if (CollectionUtils.isNotEmpty(trainingList)) {
|
|
|
trainingList.forEach(item -> item.setStatus("2"));
|
|
|
trainingList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
trainingInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1133,7 +1133,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentCertificateInfo> certificateList = dto.getCertificateInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(certificateList)) {
|
|
|
certificateList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
certificateInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1142,7 +1142,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentSkillInfo> skillList = dto.getSkillInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(skillList)) {
|
|
|
skillList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
skillInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1151,7 +1151,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentLanguageInfo> languageList = dto.getLanguageInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(languageList)) {
|
|
|
languageList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
languageInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
|
|
@@ -1161,7 +1161,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentFamilyInfo> familyList = dto.getFamilyInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(familyList)) {
|
|
|
familyList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
familyInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
}
|
|
@@ -1170,7 +1170,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
List<EnrollmentRewardInfo> rewardList = dto.getRewardInfoList();
|
|
|
if (CollectionUtils.isNotEmpty(rewardList)) {
|
|
|
rewardList.forEach(item -> {
|
|
|
- item.setStatus("2");
|
|
|
+ item.setStatus(status);
|
|
|
rewardInfoService.saveOrUpdate(item);
|
|
|
});
|
|
|
|
|
@@ -1683,6 +1683,24 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
|
return enrollmentRegistrations;
|
|
|
}
|
|
|
|
|
|
+ public void updateStatusByIdUserInfo(EnrollmentRegistration registrationData) {
|
|
|
+ try {
|
|
|
+ EnrollmentUserInfoAudit enrollmentUserInfoAudit = new EnrollmentUserInfoAudit();
|
|
|
+ enrollmentUserInfoAudit.setStatus("4");
|
|
|
+ enrollmentUserInfoAudit.setId(registrationData.getId());
|
|
|
+ enrollmentUserInfoAudit.setProcInsId("");
|
|
|
+ enrollmentUserInfoAudit.setProcessDefinitionId("");
|
|
|
+ enrollmentUserInfoAudit.setRegistrationId(registrationData.getRegistrationId());
|
|
|
+ userInfoAuditService.saveOrUpdate(enrollmentUserInfoAudit);
|
|
|
+ //更新提交审批的时间
|
|
|
+ mapper.updateApprovalTime(registrationData.getUserId());
|
|
|
+ updateEnrollmentDetailInfo(registrationData,"4");
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 批量下载附件压缩包
|
|
|
*
|