|
@@ -814,6 +814,7 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
GetDetailVO getDetailVO = new GetDetailVO();
|
|
|
getDetailVO.setHospitalId(analyzeApiVO.getHospitalId());
|
|
|
getDetailVO.setBehospitalCode(analyzeApiVO.getBehospitalCode());
|
|
|
+ getDetailVO.setNeedGroup(analyzeApiVO.getNeedGroup());
|
|
|
return getByBehospitalCodeApi(getDetailVO);
|
|
|
}
|
|
|
|
|
@@ -858,9 +859,12 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
BeanUtil.copyProperties(getDetailVO, analyzeVO);
|
|
|
List<MsgDTO> msgDTOList = getMsg(analyzeVO);
|
|
|
List<MsgApiDTO> msgApiDTOList = BeanUtil.listCopyTo(msgDTOList, MsgApiDTO.class);
|
|
|
- Map<String, List<MsgApiDTO>> msgMap = EntityUtil.makeEntityListMap(msgApiDTOList, "modelName");
|
|
|
-
|
|
|
- res.put("details", msgMap);
|
|
|
+ if (getDetailVO.getNeedGroup() == 0) {
|
|
|
+ res.put("details", msgApiDTOList);
|
|
|
+ } else {
|
|
|
+ Map<String, List<MsgApiDTO>> msgMap = EntityUtil.makeEntityListMap(msgApiDTOList, "modelName");
|
|
|
+ res.put("details", msgMap);
|
|
|
+ }
|
|
|
return res;
|
|
|
}
|
|
|
|