diff --git a/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java b/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java index 17572a0..62ce03a 100644 --- a/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java +++ b/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java @@ -261,6 +261,20 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu rs.executeQuery("select * from uf_jcl_yppc where id = ?", sourceId); Map mainDataMap = RecruitRecordSet.getSingleRecordMap(rs); + + // 转推其他职位的时候,如果选择的职位存在候选中的 + // 提示:该职位已在应聘中,无需重复应聘 + String xm = Util.null2String(mainDataMap.get("xm")); + String sjhm = Util.null2String(mainDataMap.get("sjhm")); + if(StringUtils.isNotBlank(sjhm)) { + rs.executeQuery("select id from uf_jcl_yppc where xm = ? and sjhm = ? and ypzw = ?", xm, sjhm, ypzw); + }else{ + rs.executeQuery("select id from uf_jcl_yppc where xm = ? and (sjhm is null or sjhm = '') and ypzw = ?", xm, ypzw); + } + if (rs.next()) { + throw new CustomizeRunTimeException("该职位已在应聘中,无需重复应聘"); + } + // 构建新数据 mainDataMap.put("ypzw", ypzw);