优化问题修改

This commit is contained in:
2026-02-04 22:50:00 +08:00
parent 7e77f64cc1
commit 4277ff1869
2 changed files with 53 additions and 48 deletions

View File

@@ -1427,6 +1427,7 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
String resultJsonOne = resultStrOne.replaceAll("```json", "").replaceAll("```", "");
log.info("候选人面试综合评估:{}", resultJsonOne);
Map dataMap = JSONUtil.toBean(resultJsonOne, Map.class);
if(dataMap != null){
Map scoreBreakdownMap = (Map) dataMap.get("score_breakdown");
if (scoreBreakdownMap != null) {
Map assessmentMap = (Map) scoreBreakdownMap.get("assessment");
@@ -1451,6 +1452,7 @@ public class HotakeAiCommonToolsServiceImpl extends BaseServiceImpl implements I
dto.setQuestionsDetails(details);
}
}
}
dto.setOverallScore(dataMap.get("overall_score").toString());
dto.setRecommendation(dataMap.get("recommendation").toString());

View File

@@ -277,7 +277,7 @@ public class HotakeInitScreQuestionsReplyRecordInfoServiceImpl extends BaseServi
// HotakeCandidateCompatibilityDto compatibilityDto = aiCommonToolsService.handleCandidateCompatibility(compatibilityVo);
// applyInfo.setCandidateCompatibilityJson(JSONUtil.toJsonStr(compatibilityDto));
// applyInfo.setCandidateCompatibilityScore(compatibilityDto.getOverallScore());
try{
//候选人面试综合评估
HotakeCandidateInterviewEvaluationVo evaluationVo = new HotakeCandidateInterviewEvaluationVo();
@@ -305,6 +305,9 @@ public class HotakeInitScreQuestionsReplyRecordInfoServiceImpl extends BaseServi
HotakeCandidateInterviewEvaluationDto evaluationDto = aiCommonToolsService.getCandidateInterviewEvaluation(evaluationVo);
applyInfo.setEvaluationJson(JSONUtil.toJsonStr(evaluationDto));
applyInfo.setEvaluationScore(new BigDecimal(evaluationDto.getOverallScore()));
}catch (Exception e){
e.printStackTrace();
}
applyInfo.setRecruiterId(rolesInf.getRecruiterId());
applyInfo.setStage(StageEnum.APPLIED.getCode());