|
@@ -2,6 +2,9 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.diagbot.entity.BrRecdiagnose;
|
|
import com.diagbot.entity.BrRecdiagnose;
|
|
|
|
+import com.diagbot.enums.ZCZDPBEnum;
|
|
|
|
+import com.diagbot.enums.ZDLBDMEnum;
|
|
|
|
+import com.diagbot.enums.ZDLXEnum;
|
|
import com.diagbot.service.impl.BrRecdiagnoseServiceImpl;
|
|
import com.diagbot.service.impl.BrRecdiagnoseServiceImpl;
|
|
import com.diagbot.util.EntityUtil;
|
|
import com.diagbot.util.EntityUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -38,26 +41,26 @@ public class BrRecdiagnoseFacade extends BrRecdiagnoseServiceImpl {
|
|
}
|
|
}
|
|
Map<String, List<BrRecdiagnose>> map = EntityUtil.makeEntityListMap(brRecdiagnoses, "zdlbdm");
|
|
Map<String, List<BrRecdiagnose>> map = EntityUtil.makeEntityListMap(brRecdiagnoses, "zdlbdm");
|
|
for (Map.Entry<String, List<BrRecdiagnose>> entry : map.entrySet()) {
|
|
for (Map.Entry<String, List<BrRecdiagnose>> entry : map.entrySet()) {
|
|
- if (entry.getKey().equals("1")) {
|
|
|
|
|
|
+ if (entry.getKey().equals(String.valueOf(ZDLBDMEnum.MJZ.getKey()))) {
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
List<BrRecdiagnose> subBrRecdiagnoses = entry.getValue().stream().filter(i -> i.getZczdpb() != null).collect(Collectors.toList());
|
|
List<BrRecdiagnose> subBrRecdiagnoses = entry.getValue().stream().filter(i -> i.getZczdpb() != null).collect(Collectors.toList());
|
|
- Map<String, List<BrRecdiagnose>> subMap = EntityUtil.makeEntityListMap(subBrRecdiagnoses, "zczdpb");
|
|
|
|
- if (subMap.containsKey(1)) {
|
|
|
|
- retMap.put("mjzzyzdList", subMap.get(1));
|
|
|
|
|
|
+ Map<Integer, List<BrRecdiagnose>> subMap = EntityUtil.makeEntityListMap(subBrRecdiagnoses, "zczdpb");
|
|
|
|
+ if (subMap.containsKey(ZCZDPBEnum.ZY.getKey())) {
|
|
|
|
+ retMap.put(ZDLXEnum.MJZZYZD.getName(), subMap.get(ZCZDPBEnum.ZY.getKey()));
|
|
}
|
|
}
|
|
- if (subMap.containsKey(2)) {
|
|
|
|
- retMap.put("mjzqtzdList", subMap.get(2));
|
|
|
|
|
|
+ if (subMap.containsKey(ZCZDPBEnum.QT.getKey())) {
|
|
|
|
+ retMap.put(ZDLXEnum.MJZQTZD.getName(), subMap.get(ZCZDPBEnum.QT.getKey()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else if (entry.getKey().equals("2")) {
|
|
|
|
|
|
+ } else if (entry.getKey().equals(String.valueOf(ZDLBDMEnum.ZY.getKey()))) {
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
if (ListUtil.isNotEmpty(entry.getValue())) {
|
|
List<BrRecdiagnose> subBrRecdiagnoses = entry.getValue().stream().filter(i -> i.getZczdpb() != null).collect(Collectors.toList());
|
|
List<BrRecdiagnose> subBrRecdiagnoses = entry.getValue().stream().filter(i -> i.getZczdpb() != null).collect(Collectors.toList());
|
|
- Map<String, List<BrRecdiagnose>> subMap = EntityUtil.makeEntityListMap(subBrRecdiagnoses, "zczdpb");
|
|
|
|
- if (subMap.containsKey(1)) {
|
|
|
|
- retMap.put("zyzyzdList", subMap.get(1));
|
|
|
|
|
|
+ Map<Integer, List<BrRecdiagnose>> subMap = EntityUtil.makeEntityListMap(subBrRecdiagnoses, "zczdpb");
|
|
|
|
+ if (subMap.containsKey(ZCZDPBEnum.ZY.getKey())) {
|
|
|
|
+ retMap.put(ZDLXEnum.ZYZYZD.getName(), subMap.get(ZCZDPBEnum.ZY.getKey()));
|
|
}
|
|
}
|
|
- if (subMap.containsKey(2)) {
|
|
|
|
- retMap.put("zyqtzdList", subMap.get(2));
|
|
|
|
|
|
+ if (subMap.containsKey(ZCZDPBEnum.QT.getKey())) {
|
|
|
|
+ retMap.put(ZDLXEnum.ZYQTZD.getName(), subMap.get(ZCZDPBEnum.QT.getKey()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|