|
|
|
@ -87,8 +87,7 @@ public class EsbRpcPositionZhilianSz implements EsbRpcRemoteInterface {
|
|
|
|
|
jobAdd(params,jdbcTemplate);
|
|
|
|
|
return SxjgUtil.ok();
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return SxjgUtil.err(e.getMessage());
|
|
|
|
|
throw new RuntimeException(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//3 发布同步下线删除
|
|
|
|
@ -97,7 +96,7 @@ public class EsbRpcPositionZhilianSz implements EsbRpcRemoteInterface {
|
|
|
|
|
updateJob(params,jdbcTemplate);
|
|
|
|
|
return SxjgUtil.ok();
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return SxjgUtil.err(e.getMessage());
|
|
|
|
|
throw new RuntimeException(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//4 简历获取
|
|
|
|
@ -504,17 +503,26 @@ public class EsbRpcPositionZhilianSz implements EsbRpcRemoteInterface {
|
|
|
|
|
}
|
|
|
|
|
log.error("职位所属公司code对应智联code:"+companyId);
|
|
|
|
|
log.error("发布渠道:"+qudao);
|
|
|
|
|
|
|
|
|
|
String salary_type = (String)params.get("salary_type");//薪酬范围
|
|
|
|
|
log.error("薪酬范围:"+salary_type);
|
|
|
|
|
boolean isSalaryView;
|
|
|
|
|
if("面议".equals(salary_type)) {
|
|
|
|
|
isSalaryView = true;
|
|
|
|
|
}else {
|
|
|
|
|
isSalaryView = false;
|
|
|
|
|
}
|
|
|
|
|
String jobTitle = (String)params.get("jobTitle");//职位名称
|
|
|
|
|
String quantity1 = (String)params.get("quantity");//招聘人数
|
|
|
|
|
int quantity = Double.valueOf(quantity1).intValue();
|
|
|
|
|
String education = (String)params.get("education");//最低学历
|
|
|
|
|
int education1 = SxjgUtil.getEducodesz(education);
|
|
|
|
|
String city = (String)params.get("city");//工作城市
|
|
|
|
|
String aname=(String)params.get("aname");//工作省
|
|
|
|
|
if(city.contains("市")) {
|
|
|
|
|
city= city.split("市")[0];
|
|
|
|
|
}
|
|
|
|
|
long cityId = SxjgUtil.getCityIdsz(jdbcTemplate,city);
|
|
|
|
|
long shengid = SxjgUtil.getPrivinceIdsz(jdbcTemplate,aname);
|
|
|
|
|
String jobAddress = (String)params.get("jobAddress");//工作地址
|
|
|
|
|
String jobType = SxjgUtil.getTypeList((String)params.get("jobType"),"/");
|
|
|
|
|
String workAge = (String)params.get("workAge");//工作年限
|
|
|
|
@ -522,20 +530,27 @@ public class EsbRpcPositionZhilianSz implements EsbRpcRemoteInterface {
|
|
|
|
|
String jobNature = (String)params.get("jobNature");//职位属性
|
|
|
|
|
//转换智联
|
|
|
|
|
int jobNature1 = "实习".equals(jobNature) ? 4 : 2;
|
|
|
|
|
boolean salaryNegotiable = false;
|
|
|
|
|
BigDecimal maxSalary = new BigDecimal("8");
|
|
|
|
|
BigDecimal maxSalary = new BigDecimal("3");
|
|
|
|
|
BigDecimal minSalary = new BigDecimal("5");
|
|
|
|
|
String monthsalary1 = "";
|
|
|
|
|
if(params.get("monthsalary")!=null) {
|
|
|
|
|
monthsalary1 = (String)params.get("monthsalary");//月数
|
|
|
|
|
if(monthsalary1.length()==0) {
|
|
|
|
|
monthsalary1 = "12";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
try{
|
|
|
|
|
maxSalary = new BigDecimal((String)params.get("maxSalary"));//最大月薪
|
|
|
|
|
minSalary = new BigDecimal((String)params.get("minSalary"));//最小月薪
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
salaryNegotiable = true;
|
|
|
|
|
maxSalary = new BigDecimal("15");
|
|
|
|
|
minSalary = new BigDecimal("10");
|
|
|
|
|
}
|
|
|
|
|
long maxSalary1 =maxSalary.multiply(new BigDecimal(1000)).longValue();
|
|
|
|
|
long minSalary1 =minSalary.multiply(new BigDecimal(1000)).longValue();
|
|
|
|
|
maxSalary1 = maxSalary1>210000l ? 210000l :maxSalary1;
|
|
|
|
|
minSalary1 = minSalary1>210000l ? 210000l :minSalary1;
|
|
|
|
|
String monthsalary1 = (String)params.get("monthsalary");//招聘人数
|
|
|
|
|
|
|
|
|
|
int monthsalary = Double.valueOf(monthsalary1).intValue();
|
|
|
|
|
monthsalary = monthsalary >22 ? 22 : monthsalary;
|
|
|
|
|
monthsalary = monthsalary <12 ? 12 : monthsalary;
|
|
|
|
@ -549,13 +564,14 @@ public class EsbRpcPositionZhilianSz implements EsbRpcRemoteInterface {
|
|
|
|
|
jsonObject.put("cityCode",cityId);
|
|
|
|
|
jsonObject.put("address",jobAddress);
|
|
|
|
|
jsonObject.put("positionType",jobType);
|
|
|
|
|
jsonObject.put("salaryNegotiable",salaryNegotiable);
|
|
|
|
|
jsonObject.put("workYear",workAge1);
|
|
|
|
|
jsonObject.put("employmentType",jobNature1);
|
|
|
|
|
jsonObject.put("salaryMin",minSalary1);
|
|
|
|
|
jsonObject.put("salaryMax",maxSalary1);
|
|
|
|
|
jsonObject.put("salaryMonth",monthsalary);
|
|
|
|
|
jsonObject.put("jobDescription",jobDescription);
|
|
|
|
|
jsonObject.put("provinceCode",shengid);
|
|
|
|
|
jsonObject.put("isSalaryView",isSalaryView);
|
|
|
|
|
String rs = SxjgUtil.doJsonPostSz(this.getJobaddurl(),this.getAppid(),this.getAppReferer(),this.getToken(),jsonObject.toJSONString(),jdbcTemplate);
|
|
|
|
|
if(SxjgUtil.isSuccessSz(rs)) {
|
|
|
|
|
if(isAdd) {
|
|
|
|
|