chenbin před 1 měsícem
rodič
revize
923144e45b

+ 17 - 14
src/main/java/com/qizhen/healsphere/facade/IsolateFacade.java

@@ -52,20 +52,23 @@ public class IsolateFacade extends IsolateServiceImpl {
         List<IsolateDTO> resultList = new ArrayList<>();
         List<EpifluDTO> subtypeContinent = epifluMapper.getSubtypeContinent(inputVO);
 
-        boolean flag = StringUtil.isBlank(inputVO.getSubtype())
-                || subtypeContinent.stream()
-                .map(EpifluDTO::getSubtype)
-                .noneMatch(st -> Objects.equals(st, inputVO.getSubtype()));
-
-        if (flag) {
-            for (EpifluDTO epifluDTO : subtypeContinent) {
-                resultList.add(getIsolateDTOList(inputVO, epifluDTO));
-            }
-        } else {
-            // 创建并填充DTO
-            IsolateDTO isolateDTO = new IsolateDTO();
-            isolateDTO.setEpifluentName("甲流");
-            resultList.add(isolateDTO);
+//        boolean flag = StringUtil.isBlank(inputVO.getSubtype())
+//                || subtypeContinent.stream()
+//                .map(EpifluDTO::getSubtype)
+//                .noneMatch(st -> Objects.equals(st, inputVO.getSubtype()));
+//
+//        if (flag) {
+//            for (EpifluDTO epifluDTO : subtypeContinent) {
+//                resultList.add(getIsolateDTOList(inputVO, epifluDTO));
+//            }
+//        } else {
+//            // 创建并填充DTO
+//            IsolateDTO isolateDTO = new IsolateDTO();
+//            isolateDTO.setEpifluentName("甲流");
+//            resultList.add(isolateDTO);
+//        }
+        for (EpifluDTO epifluDTO : subtypeContinent) {
+            resultList.add(getIsolateDTOList(inputVO, epifluDTO));
         }
 
         return resultList;