|
@@ -765,9 +765,9 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
public EnrollmentUserInfoAudit findAuditInfoById(String id,String status,String flag) {
|
|
public EnrollmentUserInfoAudit findAuditInfoById(String id,String status,String flag) {
|
|
//EnrollmentUserInfoAudit info = userInfoAuditService.getById(id);
|
|
//EnrollmentUserInfoAudit info = userInfoAuditService.getById(id);
|
|
EnrollmentUserInfoAudit info = userInfoAuditService.findAuditInfoById(id, flag);
|
|
EnrollmentUserInfoAudit info = userInfoAuditService.findAuditInfoById(id, flag);
|
|
- if("1".equals(status)){
|
|
|
|
- status = "4";
|
|
|
|
- }
|
|
|
|
|
|
+ //if("1".equals(status)){
|
|
|
|
+ // status = "4";
|
|
|
|
+ //}
|
|
//根据身份证动态计算年龄
|
|
//根据身份证动态计算年龄
|
|
String idCard = info.getIdCard();
|
|
String idCard = info.getIdCard();
|
|
if (StringUtils.isNotBlank(idCard)) {
|
|
if (StringUtils.isNotBlank(idCard)) {
|
|
@@ -1071,18 +1071,19 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
SpringUtil.getBean(IFlowableApi.class).startForFenNew(allMap);
|
|
//更新提交审批的时间
|
|
//更新提交审批的时间
|
|
mapper.updateApprovalTime(registrationData.getUserId());
|
|
mapper.updateApprovalTime(registrationData.getUserId());
|
|
- if (!"4".equals(registrationData.getStatus())) {
|
|
|
|
|
|
+ if (!"4".equals(registrationData.getStatus()) ) {
|
|
IWorkAttachmentApi workAttachmentApi = SpringUtil.getBean(IWorkAttachmentApi.class);
|
|
IWorkAttachmentApi workAttachmentApi = SpringUtil.getBean(IWorkAttachmentApi.class);
|
|
SpringUtil.getBean(IWorkAttachmentApi.class).deleteByAttachmentId(enrollmentUserInfoAudit.getId());
|
|
SpringUtil.getBean(IWorkAttachmentApi.class).deleteByAttachmentId(enrollmentUserInfoAudit.getId());
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardFront(), "idCardFront", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardFront(), "idCardFront", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardBack(), "idCardBack", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardBack(), "idCardBack", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
- saveEnrollmentDetailInfo(registrationData);
|
|
|
|
|
|
+ //saveEnrollmentDetailInfo(registrationData);
|
|
|
|
+ updateEnrollmentDetailInfo(registrationData,"2","approval");
|
|
} else {
|
|
} else {
|
|
IWorkAttachmentApi workAttachmentApi = SpringUtil.getBean(IWorkAttachmentApi.class);
|
|
IWorkAttachmentApi workAttachmentApi = SpringUtil.getBean(IWorkAttachmentApi.class);
|
|
SpringUtil.getBean(IWorkAttachmentApi.class).deleteByAttachmentId(enrollmentUserInfoAudit.getId());
|
|
SpringUtil.getBean(IWorkAttachmentApi.class).deleteByAttachmentId(enrollmentUserInfoAudit.getId());
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardFront(), "idCardFront", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardFront(), "idCardFront", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardBack(), "idCardBack", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
saveAttachments(enrollmentUserInfoAudit.getIdCardBack(), "idCardBack", enrollmentUserInfoAudit.getId(), userDTO, workAttachmentApi);
|
|
- updateEnrollmentDetailInfo(registrationData,"2");
|
|
|
|
|
|
+ updateEnrollmentDetailInfo(registrationData,"2","approval");
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
@@ -1227,105 +1228,106 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public void updateEnrollmentDetailInfo(EnrollmentRegistration dto,String status) {
|
|
|
|
- // 教育经历
|
|
|
|
- List<EnrollmentEduInfo> eduList = dto.getEduInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(eduList)) {
|
|
|
|
- eduList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- eduInfoService.saveOrUpdate(item);
|
|
|
|
- eduInfoService.saveOrUpdateEduWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ public void updateEnrollmentDetailInfo(EnrollmentRegistration dto,String status,String flag) {
|
|
|
|
|
|
- // 工作经历
|
|
|
|
- List<EnrollmentWorkInfo> workList = dto.getWorkInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(workList)) {
|
|
|
|
- workList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- workInfoService.saveOrUpdate(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // 教育经历
|
|
|
|
+ List<EnrollmentEduInfo> eduList = dto.getEduInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(eduList)) {
|
|
|
|
+ eduList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ eduInfoService.saveOrUpdate(item);
|
|
|
|
+ eduInfoService.saveOrUpdateEduWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- // 培训经历
|
|
|
|
- List<EnrollmentTrainingInfo> trainingList = dto.getTrainingInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(trainingList)) {
|
|
|
|
- trainingList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- trainingInfoService.saveOrUpdate(item);
|
|
|
|
- trainingInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // 工作经历
|
|
|
|
+ List<EnrollmentWorkInfo> workList = dto.getWorkInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(workList)) {
|
|
|
|
+ workList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ workInfoService.saveOrUpdate(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- // 资质证书
|
|
|
|
- List<EnrollmentCertificateInfo> certificateList = dto.getCertificateInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(certificateList)) {
|
|
|
|
- certificateList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- certificateInfoService.saveOrUpdate(item);
|
|
|
|
- certificateInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // 培训经历
|
|
|
|
+ List<EnrollmentTrainingInfo> trainingList = dto.getTrainingInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(trainingList)) {
|
|
|
|
+ trainingList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ trainingInfoService.saveOrUpdate(item);
|
|
|
|
+ trainingInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- // 专业技能
|
|
|
|
- List<EnrollmentSkillInfo> skillList = dto.getSkillInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(skillList)) {
|
|
|
|
- skillList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- skillInfoService.saveOrUpdate(item);
|
|
|
|
- skillInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ // 资质证书
|
|
|
|
+ List<EnrollmentCertificateInfo> certificateList = dto.getCertificateInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(certificateList)) {
|
|
|
|
+ certificateList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ certificateInfoService.saveOrUpdate(item);
|
|
|
|
+ certificateInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- // 语言能力
|
|
|
|
- List<EnrollmentLanguageInfo> languageList = dto.getLanguageInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(languageList)) {
|
|
|
|
- languageList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- languageInfoService.saveOrUpdate(item);
|
|
|
|
- languageInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
|
|
+ // 专业技能
|
|
|
|
+ List<EnrollmentSkillInfo> skillList = dto.getSkillInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(skillList)) {
|
|
|
|
+ skillList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ skillInfoService.saveOrUpdate(item);
|
|
|
|
+ skillInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // 语言能力
|
|
|
|
+ List<EnrollmentLanguageInfo> languageList = dto.getLanguageInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(languageList)) {
|
|
|
|
+ languageList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ languageInfoService.saveOrUpdate(item);
|
|
|
|
+ languageInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
|
|
- // 家庭成员
|
|
|
|
- List<EnrollmentFamilyInfo> familyList = dto.getFamilyInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(familyList)) {
|
|
|
|
- familyList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- familyInfoService.saveOrUpdate(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- // 奖项信息
|
|
|
|
- List<EnrollmentRewardInfo> rewardList = dto.getRewardInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(rewardList)) {
|
|
|
|
- rewardList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- rewardInfoService.saveOrUpdate(item);
|
|
|
|
- rewardInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
- });
|
|
|
|
|
|
+ // 家庭成员
|
|
|
|
+ List<EnrollmentFamilyInfo> familyList = dto.getFamilyInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(familyList)) {
|
|
|
|
+ familyList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ familyInfoService.saveOrUpdate(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // 奖项信息
|
|
|
|
+ List<EnrollmentRewardInfo> rewardList = dto.getRewardInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(rewardList)) {
|
|
|
|
+ rewardList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ rewardInfoService.saveOrUpdate(item);
|
|
|
|
+ rewardInfoService.saveOrUpdateWorkAttachment(item);
|
|
|
|
+ });
|
|
|
|
|
|
- // 社会及行业职务
|
|
|
|
- List<EnrollmentSocietyInfo> societyInfoList = dto.getSocietyInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(societyInfoList)) {
|
|
|
|
- societyInfoList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- societyInfoService.saveOrUpdate(item);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- // 工作业绩
|
|
|
|
- List<EnrollmentPerformanceInfo> performanceInfoList = dto.getPerformanceInfoList();
|
|
|
|
- if (CollectionUtils.isNotEmpty(performanceInfoList)) {
|
|
|
|
- performanceInfoList.forEach(item -> {
|
|
|
|
- item.setStatus(status);
|
|
|
|
- performanceInfoService.saveOrUpdate(item);
|
|
|
|
- });
|
|
|
|
|
|
+ // 社会及行业职务
|
|
|
|
+ List<EnrollmentSocietyInfo> societyInfoList = dto.getSocietyInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(societyInfoList)) {
|
|
|
|
+ societyInfoList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ societyInfoService.saveOrUpdate(item);
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ // 工作业绩
|
|
|
|
+ List<EnrollmentPerformanceInfo> performanceInfoList = dto.getPerformanceInfoList();
|
|
|
|
+ if (CollectionUtils.isNotEmpty(performanceInfoList)) {
|
|
|
|
+ performanceInfoList.forEach(item -> {
|
|
|
|
+ item.setStatus(status);
|
|
|
|
+ performanceInfoService.saveOrUpdate(item);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -1821,7 +1823,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
return enrollmentRegistrations;
|
|
return enrollmentRegistrations;
|
|
}
|
|
}
|
|
|
|
|
|
- public void updateStatusByIdUserInfo(EnrollmentRegistration registrationData) {
|
|
|
|
|
|
+ public void updateStatusByIdUserInfo(EnrollmentRegistration registrationData,String flag) {
|
|
try {
|
|
try {
|
|
EnrollmentUserInfoAudit enrollmentUserInfoAudit = new EnrollmentUserInfoAudit();
|
|
EnrollmentUserInfoAudit enrollmentUserInfoAudit = new EnrollmentUserInfoAudit();
|
|
enrollmentUserInfoAudit.setStatus("4");
|
|
enrollmentUserInfoAudit.setStatus("4");
|
|
@@ -1832,7 +1834,7 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
|
|
userInfoAuditService.saveOrUpdate(enrollmentUserInfoAudit);
|
|
userInfoAuditService.saveOrUpdate(enrollmentUserInfoAudit);
|
|
//更新提交审批的时间
|
|
//更新提交审批的时间
|
|
mapper.updateApprovalTime(registrationData.getUserId());
|
|
mapper.updateApprovalTime(registrationData.getUserId());
|
|
- updateEnrollmentDetailInfo(registrationData,"4");
|
|
|
|
|
|
+ updateEnrollmentDetailInfo(registrationData,"4",flag);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|