|
|
|
@ -29,10 +29,11 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
rs8.put("message","同一职位不能重复投递!");
|
|
|
|
|
return rs8;
|
|
|
|
|
}
|
|
|
|
|
//当前人再所有组织的岗位数量
|
|
|
|
|
//当前人再所有组织的岗位数量当年
|
|
|
|
|
String sql = "select count(a.id) as nums,b.sub_company from uf_rcrt_candidate_batch a " +
|
|
|
|
|
"INNER JOIN uf_rcrt_position b on a.position_id = b.ID" +
|
|
|
|
|
" where a.talent_id = '"+talentId+"' GROUP BY b.sub_company";
|
|
|
|
|
" 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)) {
|
|
|
|
@ -68,7 +69,7 @@ public class JoinPositionRuleImpl implements JoinPositionRule {
|
|
|
|
|
private Map<String,String> schoolcheck(String talentId,String positionId){
|
|
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
|
|
//判断该职位是否需要做学校限制
|
|
|
|
|
String sql = "select xx from uf_position_schoollimit where zwxx = '"+positionId+"'";
|
|
|
|
|
String sql = "select xx from uf_position_schoollimit where zwxx = '"+positionId+"' and qy = '0'";
|
|
|
|
|
List<Map<String, Object>> rs1 = jdbcTemplate.queryForList(sql);
|
|
|
|
|
if(CollectionUtil.isEmpty(rs1)) {
|
|
|
|
|
result.put("result", "ok");
|
|
|
|
|