|
@@ -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;
|