优化问题修改
This commit is contained in:
@@ -1427,6 +1427,7 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
|
|||||||
String resultJsonOne = resultStrOne.replaceAll("```json", "").replaceAll("```", "");
|
String resultJsonOne = resultStrOne.replaceAll("```json", "").replaceAll("```", "");
|
||||||
log.info("候选人面试综合评估:{}", resultJsonOne);
|
log.info("候选人面试综合评估:{}", resultJsonOne);
|
||||||
Map dataMap = JSONUtil.toBean(resultJsonOne, Map.class);
|
Map dataMap = JSONUtil.toBean(resultJsonOne, Map.class);
|
||||||
|
if(dataMap != null){
|
||||||
Map scoreBreakdownMap = (Map) dataMap.get("score_breakdown");
|
Map scoreBreakdownMap = (Map) dataMap.get("score_breakdown");
|
||||||
if (scoreBreakdownMap != null) {
|
if (scoreBreakdownMap != null) {
|
||||||
Map assessmentMap = (Map) scoreBreakdownMap.get("assessment");
|
Map assessmentMap = (Map) scoreBreakdownMap.get("assessment");
|
||||||
@@ -1451,6 +1452,7 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
|
|||||||
dto.setQuestionsDetails(details);
|
dto.setQuestionsDetails(details);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dto.setOverallScore(dataMap.get("overall_score").toString());
|
dto.setOverallScore(dataMap.get("overall_score").toString());
|
||||||
dto.setRecommendation(dataMap.get("recommendation").toString());
|
dto.setRecommendation(dataMap.get("recommendation").toString());
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ public class HotakeInitScreQuestionsReplyRecordInfoServiceImpl extends BaseServi
|
|||||||
// HotakeCandidateCompatibilityDto compatibilityDto = aiCommonToolsService.handleCandidateCompatibility(compatibilityVo);
|
// HotakeCandidateCompatibilityDto compatibilityDto = aiCommonToolsService.handleCandidateCompatibility(compatibilityVo);
|
||||||
// applyInfo.setCandidateCompatibilityJson(JSONUtil.toJsonStr(compatibilityDto));
|
// applyInfo.setCandidateCompatibilityJson(JSONUtil.toJsonStr(compatibilityDto));
|
||||||
// applyInfo.setCandidateCompatibilityScore(compatibilityDto.getOverallScore());
|
// applyInfo.setCandidateCompatibilityScore(compatibilityDto.getOverallScore());
|
||||||
|
try{
|
||||||
//候选人面试综合评估
|
//候选人面试综合评估
|
||||||
HotakeCandidateInterviewEvaluationVo evaluationVo = new HotakeCandidateInterviewEvaluationVo();
|
HotakeCandidateInterviewEvaluationVo evaluationVo = new HotakeCandidateInterviewEvaluationVo();
|
||||||
|
|
||||||
@@ -305,6 +305,9 @@ public class HotakeInitScreQuestionsReplyRecordInfoServiceImpl extends BaseServi
|
|||||||
HotakeCandidateInterviewEvaluationDto evaluationDto = aiCommonToolsService.getCandidateInterviewEvaluation(evaluationVo);
|
HotakeCandidateInterviewEvaluationDto evaluationDto = aiCommonToolsService.getCandidateInterviewEvaluation(evaluationVo);
|
||||||
applyInfo.setEvaluationJson(JSONUtil.toJsonStr(evaluationDto));
|
applyInfo.setEvaluationJson(JSONUtil.toJsonStr(evaluationDto));
|
||||||
applyInfo.setEvaluationScore(new BigDecimal(evaluationDto.getOverallScore()));
|
applyInfo.setEvaluationScore(new BigDecimal(evaluationDto.getOverallScore()));
|
||||||
|
}catch (Exception e){
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
applyInfo.setRecruiterId(rolesInf.getRecruiterId());
|
applyInfo.setRecruiterId(rolesInf.getRecruiterId());
|
||||||
applyInfo.setStage(StageEnum.APPLIED.getCode());
|
applyInfo.setStage(StageEnum.APPLIED.getCode());
|
||||||
|
|||||||
Reference in New Issue
Block a user