diff --git a/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/TransientServiceImpl.java b/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/TransientServiceImpl.java index 3b382ba11..02ce0ac98 100644 --- a/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/TransientServiceImpl.java +++ b/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/TransientServiceImpl.java @@ -295,7 +295,7 @@ public class TransientServiceImpl implements TransientService { // 获取按终端分类的监测点索引集合 List lineList = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList()); List data = deviceTreeClient.getTerminalTree().getData(); - if(CollectionUtils.isEmpty(transientParam.getSubstationIds())){ + if(!CollectionUtils.isEmpty(transientParam.getSubstationIds())){ List collect = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream) .map(TerminalTree::getChildren).flatMap(Collection::stream) .map(TerminalTree::getChildren).flatMap(Collection::stream) @@ -308,7 +308,7 @@ public class TransientServiceImpl implements TransientService { lineList.retainAll(collect); } - if(CollectionUtils.isEmpty(transientParam.getLineIds())){ + if(!CollectionUtils.isEmpty(transientParam.getLineIds())){ List collect1 = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream) .map(TerminalTree::getChildren).flatMap(Collection::stream) .map(TerminalTree::getChildren).flatMap(Collection::stream)