diff --git a/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java b/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java index 1016ee6..1edbbea 100644 --- a/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java +++ b/src/com/engine/recruit/service/impl/ApplicantResumeServiceImpl.java @@ -203,9 +203,18 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu // 分配职位 String billid = Util.null2String(params.get("billid")); String ypzw = Util.null2String(params.get("ypzw")); - if (StringUtils.isNotBlank(ypzw)) { - rs.executeUpdate("update uf_jcl_yppc set ypzw = ? , zt = 1 where id = ?", ypzw, billid); + if (StringUtils.isBlank(ypzw)) { + throw new CustomizeRunTimeException("应聘职位不可为空"); } + String flowId = PositionCommonInfo.getRecruitFlowId(ypzw); + Map 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); returnMap.put("msg", "操作成功"); } else if (ApplicantOperateEnum.ARCHIVE.getOperateType().equals(operateType)) { // 归档人才库 @@ -237,7 +246,7 @@ public class ApplicantResumeServiceImpl extends Service implements ApplicantResu recordPo.execute(); } } else { - returnMap.put("msg", "请至少选择一条数据"); + throw new CustomizeRunTimeException("请至少选择一条数据"); } } else if (ApplicantOperateEnum.REFERRAL.getOperateType().equals(operateType)) { // 转推其他职位 diff --git a/src/weaver/formmode/recruit/modeexpand/position/PositionRelatedStageExpand.java b/src/weaver/formmode/recruit/modeexpand/position/PositionRelatedStageExpand.java index 9fdaba3..983d4a6 100644 --- a/src/weaver/formmode/recruit/modeexpand/position/PositionRelatedStageExpand.java +++ b/src/weaver/formmode/recruit/modeexpand/position/PositionRelatedStageExpand.java @@ -20,6 +20,7 @@ import java.util.Map; * @createTime: 2023/10/18 * @version: 1.0 */ +@Deprecated public class PositionRelatedStageExpand extends AbstractModeExpandJavaCodeNew { @Override public Map doModeExpand(Map param) {