|
|
|
@ -17,9 +17,9 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, String> JoinPositionRule(String talentId,String userId,String userName,String positionId) {
|
|
|
|
|
public Map<String, String> JoinPositionRule(String talentId,String userId,String userName,String positionId,String resumeId) {
|
|
|
|
|
Map<String,String> rs8 = new HashMap<>();
|
|
|
|
|
Map<String,String> rs7 = schoolcheck(talentId,positionId);
|
|
|
|
|
Map<String,String> rs7 = schoolcheck(resumeId,positionId);
|
|
|
|
|
if(rs7.get("result").equals("error")) {
|
|
|
|
|
return rs7;
|
|
|
|
|
}
|
|
|
|
@ -35,10 +35,10 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
" where a.talent_id = '"+talentId+"' and LEFT(a.create_time,4) = LEFT(NOW(),4) " +
|
|
|
|
|
" GROUP BY b.sub_company";
|
|
|
|
|
List<Map<String,Object>> rs2 = jdbcTemplate.queryForList(sql);
|
|
|
|
|
log.error("sql1:"+sql);
|
|
|
|
|
|
|
|
|
|
if(CollectionUtil.isNotEmpty(rs2)) {
|
|
|
|
|
sql = "select sub_company from uf_rcrt_position where id = '"+positionId+"'";
|
|
|
|
|
log.error("sql2:"+sql);
|
|
|
|
|
|
|
|
|
|
List<Map<String,Object>> rs3 = jdbcTemplate.queryForList(sql);
|
|
|
|
|
if(CollectionUtil.isEmpty(rs3)) {
|
|
|
|
|
rs8.put("result","ok");
|
|
|
|
@ -66,7 +66,7 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
/**
|
|
|
|
|
* 岗位学校配置
|
|
|
|
|
*/
|
|
|
|
|
private Map<String,String> schoolcheck(String talentId,String positionId){
|
|
|
|
|
private Map<String,String> schoolcheck(String resumeId,String positionId){
|
|
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
|
|
//判断该职位是否需要做学校限制
|
|
|
|
|
String sql = "select xx from uf_position_schoollimit where zwxx = '"+positionId+"' and qy = '0'";
|
|
|
|
@ -78,7 +78,8 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//根据人才基本信息id获取教育背景
|
|
|
|
|
sql = "select school from rcrt_education_exp where form_data_id = '"+talentId+"'";
|
|
|
|
|
|
|
|
|
|
sql = "select school from jybj_998314268635990 where FORM_DATA_ID = '"+resumeId+"'";
|
|
|
|
|
List<Map<String, Object>> rs2 = jdbcTemplate.queryForList(sql);
|
|
|
|
|
if(CollectionUtil.isNotEmpty(rs2)) {
|
|
|
|
|
//根据职位id获取高校
|
|
|
|
|