评估报告

This commit is contained in:
sunxiqing 2025-01-04 17:36:28 +08:00
parent c1798ef5a2
commit 9b6cd2b3cb
2 changed files with 0 additions and 11 deletions

View File

@ -71,8 +71,6 @@ public class ManualAssessmentPageRespVO {
@ExcelIgnore
private List<HashMap<String, Object>> reqRespVos;
@Schema(description = "评估报告专用")
private HashMap<String ,Object> reportMap;
@Schema(description = "系统信息")
private String system;

View File

@ -91,14 +91,6 @@ public class ManualModelAnswerServiceImpl implements ManualModelAnswerService {
resp.setManalTaskId(modelAnswerDO.getManalTaskId());
if (!CollectionUtils.isAnyEmpty(modelAnswerDO.getReqRespVos())){
resp.setReqRespVos(modelAnswerDO.getReqRespVos());
// 将map 转换成 map<String,Object>给评估报告专用
HashMap<String, Object> report = new HashMap<>();
modelAnswerDO.getReqRespVos().forEach(
map -> {
report.put(String.valueOf(map.get("label")),map.get("score"));
}
);
resp.setReportMap(report);
}else {
if (!CollectionUtils.isAnyEmpty(modelAssessTaskManual.getDimensions())){
List<HashMap<String, Object>> map = new ArrayList<>();
@ -111,7 +103,6 @@ public class ManualModelAnswerServiceImpl implements ManualModelAnswerService {
report.put(dimension.getDimensionName(),0);
});
resp.setReqRespVos(map);
resp.setReportMap(report);
}
}
res.add(resp);