Commit 5d5196c5 by zwb

修改岗位智推分析数据保存使用cityCode

parent ce8faa9b
......@@ -106,7 +106,6 @@ public class JobRecommendController {
/**
* 查询推荐岗位列表
*
* @param dto
* @return
*/
......
......@@ -1139,17 +1139,18 @@ public class RecommendPositionServiceImpl implements RecommendPositionService {
* 构建推荐参数
*/
private List<RcommendParam> buildRecommendParams(AiRecommendVo aiRecommendVo, List<FunctionResumeSketch> resumeSketchList) {
Map<String, String> cityMap = extractProfileData(aiRecommendVo);
// Map<String, String> cityMap = extractProfileData(aiRecommendVo);
String jobTypeString = convertJobType(aiRecommendVo.getJobType());
List<RcommendParam> rcommendParamList = new ArrayList<>();
String finalJobTypeString = jobTypeString;
cityMap.forEach((k, v) -> {
List<String> cityCodes = aiRecommendVo.getTargetCity();
for (String cityCode : cityCodes) {
for (String jobTitle : aiRecommendVo.getCareer()) {
for (FunctionResumeSketch resumeSketch : resumeSketchList) {
RcommendParam rcommendParam = new RcommendParam();
rcommendParam.cityCode = v;
rcommendParam.cityCode = cityCode;
rcommendParam.jobTitle = jobTitle;
rcommendParam.pay = aiRecommendVo.getPay();
rcommendParam.isIntern = finalJobTypeString;
......@@ -1159,8 +1160,7 @@ public class RecommendPositionServiceImpl implements RecommendPositionService {
rcommendParamList.add(rcommendParam);
}
}
});
}
return rcommendParamList;
}
......@@ -1236,13 +1236,13 @@ public class RecommendPositionServiceImpl implements RecommendPositionService {
AiRecommendVo aiRecommendVo = aiAnalysisService.queryAnalysisData(analysisId);
// 获取城市信息
Map<String, String> cityMap = extractProfileData(aiRecommendVo);
if (CollectionUtil.isEmpty(cityMap)) {
addProcess(userId, new ProcessItem("error", "获取城市失败,结束推荐岗位", 0, DateTimeWrapper.now().toString()));
log.error("获取城市失败,结束推荐岗位");
aiAnalysisMapper.updateAnalysis(analysisId, 0, userId, 0);
return null;
}
// Map<String, String> cityMap = extractProfileData(aiRecommendVo);
// if (CollectionUtil.isEmpty(cityMap)) {
// addProcess(userId, new ProcessItem("error", "获取城市失败,结束推荐岗位", 0, DateTimeWrapper.now().toString()));
// log.error("获取城市失败,结束推荐岗位");
// aiAnalysisMapper.updateAnalysis(analysisId, 0, userId, 0);
// return null;
// }
return aiRecommendVo;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment