From 1d74c0464fc83ba392e9df2363bfe421aedcf77a Mon Sep 17 00:00:00 2001 From: dxfeng Date: Mon, 8 Jul 2024 09:23:37 +0800 Subject: [PATCH] =?UTF-8?q?MODIFY-=E5=BA=94=E8=81=98=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=8D=A1=E7=89=87=EF=BC=8C=E5=88=86=E7=8A=B6=E6=80=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/RecruitFlowServiceImpl.java | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/com/engine/recruit/service/impl/RecruitFlowServiceImpl.java b/src/com/engine/recruit/service/impl/RecruitFlowServiceImpl.java index b6697f4..05fddcd 100644 --- a/src/com/engine/recruit/service/impl/RecruitFlowServiceImpl.java +++ b/src/com/engine/recruit/service/impl/RecruitFlowServiceImpl.java @@ -2,9 +2,11 @@ package com.engine.recruit.service.impl; import cn.hutool.core.convert.Convert; import com.engine.core.impl.Service; +import com.engine.recruit.conn.ApplicantCommonInfo; import com.engine.recruit.conn.RecruitDataMap; import com.engine.recruit.conn.RecruitRecordSet; import com.engine.recruit.entity.recruitflow.po.*; +import com.engine.recruit.enums.ApplicationStatusEnum; import com.engine.recruit.exception.CustomizeRunTimeException; import com.engine.recruit.service.RecruitFlowService; import com.engine.recruit.util.RecruitFlowUtil; @@ -34,13 +36,27 @@ public class RecruitFlowServiceImpl extends Service implements RecruitFlowServic String stageId = ""; // 招聘流程ID int recruitFlowId = -1; + String zt = ""; RecordSet rs = new RecordSet(); - rs.executeQuery("select zplc,zpjd from uf_jcl_yppc where id = ?", billId); + rs.executeQuery("select zplc,zpjd,zt from uf_jcl_yppc where id = ?", billId); if (rs.next()) { recruitFlowId = rs.getInt("zplc"); stageId = rs.getString("zpjd"); + zt = rs.getString("zt"); } + if (StringUtils.isBlank(zt) || ApplicationStatusEnum.DISTRIBUTION.getValue().equals(zt)) { + returnMap.put("redirect", true); + int modeId = ApplicantCommonInfo.getModeIdByTableName("uf_jcl_yppc"); + String url = "/spa/cube/index.html#/main/cube/card?type=0&modeId=" + modeId + "&billid=" + billId + "&isSimpleResume=true"; + returnMap.put("url", url); + return returnMap; + } + boolean isCandidate = zt.equals(ApplicationStatusEnum.CANDIDATE.getValue()); + List filterButton = new ArrayList<>(); + filterButton.add("转推其他职位"); + filterButton.add("加入黑名单"); + filterButton.add("添加备注"); if (-1 == recruitFlowId) { throw new CustomizeRunTimeException("未设置对应招聘流程"); } @@ -56,11 +72,16 @@ public class RecruitFlowServiceImpl extends Service implements RecruitFlowServic throw new RuntimeException("未找到对应招聘阶段"); } } - rs.executeQuery("select a.id,a.zdyxsmc as buttonName, a.tzymbt as tabName, a.tzymdz as tabLink, a.zssx as orderNum, b.anbs as buttonKey, b.andz as buttonType from uf_jcl_zpjdsz_dt1 a inner join uf_jcl_lcczan b on a.czan = b.id where a.sfqy = 0 and mainid = ? order by zssx", stageId); + rs.executeQuery("select a.id,b.anmc,a.zdyxsmc as buttonName, a.tzymbt as tabName, a.tzymdz as tabLink, a.zssx as orderNum, b.anbs as buttonKey, b.andz as buttonType from uf_jcl_zpjdsz_dt1 a inner join uf_jcl_lcczan b on a.czan = b.id where a.sfqy = 0 and mainid = ? order by zssx", stageId); List buttonList = new ArrayList<>(); List tabList = new ArrayList<>(); while (rs.next()) { + String anmc = rs.getString("anmc"); + if (!isCandidate && !filterButton.contains(anmc)) { + // 非候选中,隐藏按钮 + continue; + } buttonList.add(RecruitButton.builder() .key(rs.getString("id")) .buttonName(rs.getString("buttonName"))