海南大屏bug修改,暂态事件列表功能新增两个字段
This commit is contained in:
@@ -296,7 +296,7 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
List<String> lineList = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList());
|
List<String> lineList = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList());
|
||||||
List<TerminalTree> data = deviceTreeClient.getTerminalTree().getData();
|
List<TerminalTree> data = deviceTreeClient.getTerminalTree().getData();
|
||||||
if(!CollectionUtils.isEmpty(transientParam.getSubstationIds())){
|
if(!CollectionUtils.isEmpty(transientParam.getSubstationIds())){
|
||||||
List<TerminalTree> collect = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream)
|
List<String> collect = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
@@ -304,12 +304,12 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.collect(Collectors.toList());
|
.map(TerminalTree::getId).collect(Collectors.toList());
|
||||||
lineList.retainAll(collect);
|
lineList.retainAll(collect);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!CollectionUtils.isEmpty(transientParam.getLineIds())){
|
if(!CollectionUtils.isEmpty(transientParam.getLineIds())){
|
||||||
List<TerminalTree> collect1 = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream)
|
List<String> collect1 = data.stream().map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
@@ -317,7 +317,7 @@ public class TransientServiceImpl implements TransientService {
|
|||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||||
.filter(temp->transientParam.getLineIds().contains(temp.getId()))
|
.filter(temp->transientParam.getLineIds().contains(temp.getId()))
|
||||||
.collect(Collectors.toList());
|
.map(TerminalTree::getId).collect(Collectors.toList());
|
||||||
lineList.retainAll(collect1);
|
lineList.retainAll(collect1);
|
||||||
}
|
}
|
||||||
if(CollUtil.isEmpty(lineList)){
|
if(CollUtil.isEmpty(lineList)){
|
||||||
|
|||||||
Reference in New Issue
Block a user