ADD-转推其他职位,判重

This commit is contained in:
dxfeng 2024-05-13 11:27:07 +08:00
parent 9114da5c42
commit aa21ef8fdf
1 changed files with 14 additions and 0 deletions

View File

@ -261,6 +261,20 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
rs.executeQuery("select * from uf_jcl_yppc where id = ?", sourceId);
Map<String, Object> 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);