2023-11-13 09:42:14 +08:00
|
|
|
|
package com.engine.recruit.conn;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
|
* @createTime: 2023/11/10
|
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class ModeBrowserCommonInfo {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 根据名称,获取简历来源ID
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param name
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static String getResumeSource(String name) {
|
|
|
|
|
|
return getBrowserId("2", name);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-12-15 17:03:43 +08:00
|
|
|
|
* 根据名称,获取工作经验ID
|
2023-11-13 09:42:14 +08:00
|
|
|
|
*
|
|
|
|
|
|
* @param name
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static String getWorkExperience(String name) {
|
|
|
|
|
|
return getBrowserId("10", name);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-12-15 17:03:43 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取学位ID
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param name
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
public static String getDegreeId(String name) {
|
|
|
|
|
|
return getBrowserId("12", name);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取学历ID
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param name
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
2023-11-13 09:42:14 +08:00
|
|
|
|
public static String getEducationLevelId(String name) {
|
|
|
|
|
|
if (StringUtils.isBlank(name)) {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
String id = null;
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
rs.executeQuery("select id from hrmeducationlevel where name like '%" + name + "%'");
|
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
|
id = rs.getString("id");
|
|
|
|
|
|
}
|
|
|
|
|
|
return id;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static String getBrowserId(String zdlxmc, String xxnr) {
|
|
|
|
|
|
if (StringUtils.isBlank(xxnr)) {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
String sourceId = null;
|
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
|
rs.executeQuery("select id from uf_sjzd where zdlxmc = ? and xxnr = ? ", zdlxmc, xxnr);
|
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
|
sourceId = rs.getString("id");
|
|
|
|
|
|
}
|
|
|
|
|
|
return sourceId;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|