generated from dxfeng/secondev-chapanda-feishu
48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
package com.engine.recruit.conn;
|
||
|
||
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 = "";
|
||
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;
|
||
|
||
}
|
||
}
|