|
@@ -1530,7 +1530,8 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
* @param analyzeRunVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public AnalyzeRunDTO analyzeApi(AnalyzeRunVO analyzeRunVO) {
|
|
|
+ public Map<String, Object> analyzeApi(AnalyzeRunVO analyzeRunVO) {
|
|
|
+ Map<String, Object> resMapData = new HashMap<>(); // 返回结果
|
|
|
AnalyzeVO analyzeVO = new AnalyzeVO();
|
|
|
BeanUtil.copyProperties(analyzeRunVO, analyzeVO);
|
|
|
Long hospitalId = analyzeVO.getHospitalId();
|
|
@@ -1602,7 +1603,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
//百分制
|
|
|
reNum = "1";
|
|
|
}
|
|
|
- AnalyzeRunDTO analyzeRunDTO = new AnalyzeRunDTO();
|
|
|
+ QcResultApiDTO qcResultApiDTO = new QcResultApiDTO();
|
|
|
if(StringUtils.isNotEmpty(algorithmDTO.getLevel()) && algorithmDTO.getScore()!=null && msgDTOList != null){
|
|
|
if("1".equals(reNum)) {
|
|
|
bigDecimal = resPr.subtract(algorithmDTO.getScore());
|
|
@@ -1616,13 +1617,20 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
.stream()
|
|
|
.filter(Objects::nonNull)
|
|
|
.count();
|
|
|
- analyzeRunDTO.setScoreRes(algorithmDTO.getScore());
|
|
|
- analyzeRunDTO.setLevel(algorithmDTO.getLevel());
|
|
|
- analyzeRunDTO.setNum(num);
|
|
|
- analyzeRunDTO.setNumScore(bigDecimal);
|
|
|
- analyzeRunDTO.setMsgDTOList(msgDTOList);
|
|
|
+ qcResultApiDTO.setScoreRes(algorithmDTO.getScore());
|
|
|
+ qcResultApiDTO.setLevel(algorithmDTO.getLevel());
|
|
|
+ qcResultApiDTO.setNum(num);
|
|
|
+ qcResultApiDTO.setNumScore(bigDecimal);
|
|
|
+ resMapData.put("result", qcResultApiDTO);
|
|
|
+ List<MsgApiDTO> msgApiDTOList = BeanUtil.listCopyTo(msgDTOList, MsgApiDTO.class);
|
|
|
+ if (analyzeRunVO.getNeedGroup() == 0) {
|
|
|
+ resMapData.put("details", msgApiDTOList);
|
|
|
+ } else {
|
|
|
+ Map<String, List<MsgApiDTO>> msgMap = EntityUtil.makeEntityListMap(msgApiDTOList, "modelName");
|
|
|
+ resMapData.put("details", msgMap);
|
|
|
+ }
|
|
|
};
|
|
|
- return analyzeRunDTO;
|
|
|
+ return resMapData;
|
|
|
}
|
|
|
|
|
|
|