diff --git a/src/com/engine/recruit/service/impl/ResumeRecognitionServiceImpl.java b/src/com/engine/recruit/service/impl/ResumeRecognitionServiceImpl.java index 102595a..18874b9 100644 --- a/src/com/engine/recruit/service/impl/ResumeRecognitionServiceImpl.java +++ b/src/com/engine/recruit/service/impl/ResumeRecognitionServiceImpl.java @@ -69,12 +69,6 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog Map uploadDataMap = new HashMap<>(); qllResumeUpload(Convert.toInt(resumeId), uploadDataMap, false); Map resumeData = (Map) uploadDataMap.get("data"); - if(StringUtils.isNotBlank(positionId)){ - resumeData.put("ypzw", positionId); - } - if(StringUtils.isNotBlank(sourceType)){ - resumeData.put("jlly", sourceType); - } // 添加原始附件字段信息 int secCategory = Convert.toInt(RecruitConstant.APPLICANTS_RESUMES_CATEGORY); try { @@ -91,6 +85,25 @@ public class ResumeRecognitionServiceImpl extends Service implements ResumeRecog // 状态 resumeData.put("zt", ApplicationStatusEnum.DISTRIBUTION.getValue()); + if(StringUtils.isNotBlank(positionId)){ + resumeData.put("ypzw", positionId); + resumeData.put("zt", ApplicationStatusEnum.CANDIDATE.getValue()); + String flowId = PositionCommonInfo.getRecruitFlowId(positionId); + Map initialStage = ApplicantCommonInfo.getInitialStage(flowId); + if (null != initialStage) { + String zpjd = initialStage.get("zpjd"); + String dqypjd = initialStage.get("jdlx"); + if (StringUtils.isNotBlank(zpjd) && StringUtils.isNotBlank(dqypjd)) { + resumeData.put("zplc", flowId); + resumeData.put("zpjd", zpjd); + resumeData.put("dqypjd", dqypjd); + } + } + } + + if(StringUtils.isNotBlank(sourceType)){ + resumeData.put("jlly", sourceType); + } List fieldList = RecruitModeUtil.getFieldList("uf_jcl_yppc"); Set keySet = fieldList.stream().map(Formfield::getFieldname).collect(Collectors.toSet());