generated from dxfeng/secondev-chapanda-feishu
千里聆SDK更新 BUG修复
This commit is contained in:
parent
b8e24ab9d0
commit
f08cc45bca
|
|
@ -82,7 +82,7 @@ public class ReleasePositionModeExpand extends AbstractModeExpandJavaCodeNew {
|
|||
// 已发布的职位,更新职位信息
|
||||
client.editResumeJobV2(userId, jobId, jobDto -> {
|
||||
new BaseBean().writeLog("职位更新前:" + JSON.toJSONString(jobDto));
|
||||
BeanUtils.copyProperties(jobDto, resumeJobDto);
|
||||
BeanUtils.copyProperties(resumeJobDto,jobDto);
|
||||
new BaseBean().writeLog("职位更新后:" + JSON.toJSONString(jobDto));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import com.weaver.rpa.sdk.clients.application.resume.entity.ResumeJobDynamicFiel
|
|||
import com.weaver.rpa.sdk.clients.application.resume.entity.ResumeJobV2Dto;
|
||||
import com.weaver.rpa.sdk.utils.HttpClientUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.BaseBean;
|
||||
import weaver.general.Util;
|
||||
|
||||
|
|
@ -136,7 +137,7 @@ public class RecruitPositionUtil {
|
|||
}
|
||||
// 配置职位描述
|
||||
resumeJobV2Dto.setJobdesc(jobDescription);
|
||||
// TODO 配置职位类别
|
||||
// 配置职位类别
|
||||
List<ResumeJobDynamicField.Item> items = new ArrayList<>();
|
||||
ResumeJobDynamicField.Item item = new ResumeJobDynamicField.Item();
|
||||
item.setLabel("0");
|
||||
|
|
@ -180,7 +181,7 @@ public class RecruitPositionUtil {
|
|||
zwgjcList.addAll(Arrays.asList(zwgjc.split("、")));
|
||||
}
|
||||
// 匹配关键词内容
|
||||
//resumeJobV2Dto.setMappingKeywordStr(zwgjcList);
|
||||
resumeJobV2Dto.setMappingKeywordStr(zwgjcList);
|
||||
// 职位关键词
|
||||
resumeJobV2Dto.setKeywordStr(zwgjcList);
|
||||
// (必填,默认任一命中)匹配模式 1:任一命中 2:全部命中
|
||||
|
|
@ -188,21 +189,44 @@ public class RecruitPositionUtil {
|
|||
resumeJobV2Dto.setBizVersion(1);
|
||||
|
||||
// 海外经历 ["海外工作经历", "海外教育背景"]
|
||||
resumeJobV2Dto.setHwjl(null);
|
||||
List<String> hwjlList = new ArrayList<>();
|
||||
String hwjl = Util.null2String(map.get("hwjl"));
|
||||
if (StringUtils.isNotBlank(hwjl)) {
|
||||
String[] split = hwjl.split(",");
|
||||
List<String> strings = Arrays.asList(split);
|
||||
if (strings.contains("0")) {
|
||||
hwjlList.add("海外工作经历");
|
||||
}
|
||||
if (strings.contains("1")) {
|
||||
hwjlList.add("海外教育背景");
|
||||
}
|
||||
}
|
||||
|
||||
resumeJobV2Dto.setHwjl(hwjlList);
|
||||
|
||||
/*
|
||||
*BOSS直聘必填字段
|
||||
*/
|
||||
// 毕业时间-开始 boss校招必填
|
||||
resumeJobV2Dto.setBysjStart("");
|
||||
String bysjks = Util.null2String(map.get("bysjks"));
|
||||
resumeJobV2Dto.setBysjStart(bysjks);
|
||||
// 毕业时间-结束 boss校招必填
|
||||
resumeJobV2Dto.setBysjEnd("");
|
||||
String bysjjs = Util.null2String(map.get("bysjjs"));
|
||||
resumeJobV2Dto.setBysjEnd(bysjjs);
|
||||
|
||||
/*
|
||||
* 前程无忧必填
|
||||
*/
|
||||
// 发布城市
|
||||
resumeJobV2Dto.setFbcs(null);
|
||||
List<String> cityList = new ArrayList<>();
|
||||
String fbcs = Util.null2String(map.get("fbcs"));
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select cityname from hrmcity where id = ?", fbcs);
|
||||
if (rs.next()) {
|
||||
String cityName = rs.getString("cityname");
|
||||
cityList.add(cityName);
|
||||
}
|
||||
resumeJobV2Dto.setFbcs(cityList);
|
||||
// 所属行业
|
||||
String sshy = Util.null2String(map.get("szhy"));
|
||||
List<String> sshyList = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue