|
|
@@ -134,7 +134,11 @@ public class AIChatController {
|
|
|
Long selfCheckId = Long.valueOf(selfCheckIdStr);
|
|
|
com.etotem.cfc.entity.FiveDimensionSelfCheck selfCheck = selfCheckMapper.selectById(selfCheckId);
|
|
|
if (selfCheck != null) {
|
|
|
- inputs.put("self_check_result", objectMapper.writeValueAsString(selfCheck));
|
|
|
+ java.util.Map<String, Object> sc = new java.util.LinkedHashMap<>();
|
|
|
+ sc.put("totalScore", selfCheck.getTotalScore());
|
|
|
+ sc.put("scores", selfCheck.getScoresJson());
|
|
|
+ sc.put("createdAt", selfCheck.getCreatedAt() != null ? selfCheck.getCreatedAt().toString() : "");
|
|
|
+ inputs.put("self_check_result", objectMapper.writeValueAsString(sc));
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.warn("注入自检上下文失败: {}", e.getMessage());
|