|
@@ -859,11 +859,11 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
BeanUtil.copyProperties(getDetailVO, analyzeVO);
|
|
|
List<MsgDTO> msgDTOList = getMsg(analyzeVO);
|
|
|
List<MsgApiDTO> msgApiDTOList = BeanUtil.listCopyTo(msgDTOList, MsgApiDTO.class);
|
|
|
- if (getDetailVO.getNeedGroup() == 1) {
|
|
|
+ if (getDetailVO.getNeedGroup() == 0) {
|
|
|
+ res.put("details", msgApiDTOList);
|
|
|
+ } else {
|
|
|
Map<String, List<MsgApiDTO>> msgMap = EntityUtil.makeEntityListMap(msgApiDTOList, "modelName");
|
|
|
res.put("details", msgMap);
|
|
|
- } else {
|
|
|
- res.put("details", msgApiDTOList);
|
|
|
}
|
|
|
return res;
|
|
|
}
|