generated from dxfeng/secondev-chapanda-feishu
MODIFY-应聘流程卡片,分状态展示
This commit is contained in:
parent
44f3d65a27
commit
1d74c0464f
|
|
@ -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<String> 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<RecruitButton> buttonList = new ArrayList<>();
|
||||
List<RecruitTabPo> 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"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue