2023-10-27 09:27:47 +08:00
|
|
|
|
package com.engine.recruit.conn;
|
|
|
|
|
|
|
2024-01-12 09:43:11 +08:00
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
2023-10-27 09:27:47 +08:00
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 招聘职位信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
|
* @createTime: 2023/10/26
|
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class PositionCommonInfo {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 根据千里聆岗位ID,获取招聘职位ID
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param qllGwId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static String getPositionIdByQll(Long qllGwId) {
|
|
|
|
|
|
String positionId = "";
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
rs.executeQuery("select id from uf_jcl_zp_zpzw where qllgwid = ?", qllGwId);
|
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
|
positionId = rs.getString("id");
|
|
|
|
|
|
}
|
|
|
|
|
|
return positionId;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取招聘职位关联的招聘流程
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param positionId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static String getRecruitFlowId(String positionId) {
|
|
|
|
|
|
String recruitFlowId = "";
|
2024-01-12 09:43:11 +08:00
|
|
|
|
if (StringUtils.isBlank(positionId)) {
|
|
|
|
|
|
return recruitFlowId;
|
|
|
|
|
|
}
|
2023-10-27 09:27:47 +08:00
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
rs.executeQuery("select zplc from uf_jcl_zp_zpzw where id = ?", positionId);
|
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
|
recruitFlowId = rs.getString("zplc");
|
|
|
|
|
|
}
|
|
|
|
|
|
return recruitFlowId;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|