generated from dxfeng/secondev-chapanda-feishu
MODIFY-分配职位,兼容V1版本
This commit is contained in:
parent
34db192919
commit
7b99439da0
|
|
@ -198,29 +198,47 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu
|
|||
recordPo.execute();
|
||||
} else if (ApplicantOperateEnum.ASSIGN.getOperateType().equals(operateType)) {
|
||||
// 分配职位
|
||||
String ids = Util.null2String(params.get("ids"));
|
||||
// 校验所选
|
||||
rs.executeQuery("select id from uf_jcl_yppc where zt != 0 and id in(" + ids + ")");
|
||||
if (rs.next()) {
|
||||
throw new CustomizeRunTimeException("操作失败,当前存在非待分配简历数据,请刷新后重试");
|
||||
String billid = Util.null2String(params.get("billid"));
|
||||
if (StringUtils.isNotBlank(billid)) {
|
||||
// 兼容V1版本,分配职位操作
|
||||
String ypzw = Util.null2String(params.get("ypzw"));
|
||||
if (StringUtils.isBlank(ypzw)) {
|
||||
throw new CustomizeRunTimeException("应聘职位不可为空");
|
||||
}
|
||||
String flowId = PositionCommonInfo.getRecruitFlowId(ypzw);
|
||||
Map<String, String> initialStage = ApplicantCommonInfo.getInitialStage(flowId);
|
||||
String zpjd = "";
|
||||
String dqypjd = "";
|
||||
if (null != initialStage) {
|
||||
zpjd = initialStage.get("zpjd");
|
||||
dqypjd = initialStage.get("jdlx");
|
||||
}
|
||||
rs.executeUpdate("update uf_jcl_yppc set ypzw = ? , zplc = ? , zpjd = ? , dqypjd = ?, zt = 1 where id = ?", ypzw, flowId, zpjd, dqypjd, billid);
|
||||
} else {
|
||||
String ids = Util.null2String(params.get("ids"));
|
||||
// 校验所选
|
||||
rs.executeQuery("select id from uf_jcl_yppc where zt != 0 and id in(" + ids + ")");
|
||||
if (rs.next()) {
|
||||
throw new CustomizeRunTimeException("操作失败,当前存在非待分配简历数据,请刷新后重试");
|
||||
}
|
||||
String ypzw = Util.null2String(params.get("ypzw"));
|
||||
String zplc = Util.null2String(params.get("zplc"));
|
||||
String zpjd = Util.null2String(params.get("zpjd"));
|
||||
String dqypjd = Util.null2String(params.get("dqypjd"));
|
||||
if (StringUtils.isBlank(ypzw)) {
|
||||
throw new CustomizeRunTimeException("应聘职位不可为空");
|
||||
}
|
||||
if (StringUtils.isBlank(zplc)) {
|
||||
throw new CustomizeRunTimeException("未获取到招聘流程,请检查招聘职位配置");
|
||||
}
|
||||
if (StringUtils.isBlank(zpjd)) {
|
||||
throw new CustomizeRunTimeException("未获取到招聘阶段,请检查招聘流程配置");
|
||||
}
|
||||
if (StringUtils.isBlank(dqypjd)) {
|
||||
throw new CustomizeRunTimeException("当前应聘阶段获取失败");
|
||||
}
|
||||
rs.executeUpdate("update uf_jcl_yppc set ypzw = ? , zplc = ? , zpjd = ? , dqypjd = ?, zt = 1 where id in(" + ids + ")", ypzw, zplc, zpjd, dqypjd);
|
||||
}
|
||||
String ypzw = Util.null2String(params.get("ypzw"));
|
||||
String zplc = Util.null2String(params.get("zplc"));
|
||||
String zpjd = Util.null2String(params.get("zpjd"));
|
||||
String dqypjd = Util.null2String(params.get("dqypjd"));
|
||||
if (StringUtils.isBlank(ypzw)) {
|
||||
throw new CustomizeRunTimeException("应聘职位不可为空");
|
||||
}
|
||||
if (StringUtils.isBlank(zplc)) {
|
||||
throw new CustomizeRunTimeException("未获取到招聘流程,请检查招聘职位配置");
|
||||
}
|
||||
if (StringUtils.isBlank(zpjd)) {
|
||||
throw new CustomizeRunTimeException("未获取到招聘阶段,请检查招聘流程配置");
|
||||
}
|
||||
if (StringUtils.isBlank(dqypjd)) {
|
||||
throw new CustomizeRunTimeException("当前应聘阶段获取失败");
|
||||
}
|
||||
rs.executeUpdate("update uf_jcl_yppc set ypzw = ? , zplc = ? , zpjd = ? , dqypjd = ?, zt = 1 where id in(" + ids + ")", ypzw, zplc, zpjd, dqypjd);
|
||||
returnMap.put("msg", "操作成功");
|
||||
} else if (ApplicantOperateEnum.ARCHIVE.getOperateType().equals(operateType)) {
|
||||
// 归档人才库
|
||||
|
|
|
|||
Loading…
Reference in New Issue