海南bug修改提交
This commit is contained in:
@@ -340,30 +340,30 @@ public class TransientServiceImpl implements TransientService {
|
||||
// 获取按终端分类的监测点索引集合
|
||||
List<String> lineList = generalDeviceDTOList.stream().flatMap(dto -> dto.getLineIndexes().stream()).collect(Collectors.toList());
|
||||
List<TerminalTree> data = deviceTreeClient.getTerminalTree().getData();
|
||||
if (!CollectionUtils.isEmpty(transientParam.getSubstationIds())) {
|
||||
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)
|
||||
.filter(temp -> transientParam.getSubstationIds().contains(temp.getId()))
|
||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
.map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
.map(TerminalTree::getId).collect(Collectors.toList());
|
||||
lineList.retainAll(collect);
|
||||
}
|
||||
// if (!CollectionUtils.isEmpty(transientParam.getSubstationIds())) {
|
||||
// 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)
|
||||
// .filter(temp -> transientParam.getSubstationIds().contains(temp.getId()))
|
||||
// .map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
// .map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
// .map(TerminalTree::getChildren).flatMap(Collection::stream)
|
||||
// .map(TerminalTree::getId).collect(Collectors.toList());
|
||||
// lineList.retainAll(collect);
|
||||
// }
|
||||
|
||||
if (!CollectionUtils.isEmpty(transientParam.getLineIds())) {
|
||||
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)
|
||||
.filter(temp -> transientParam.getLineIds().contains(temp.getId()))
|
||||
.map(TerminalTree::getId).collect(Collectors.toList());
|
||||
lineList.retainAll(collect1);
|
||||
// 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)
|
||||
// .filter(temp -> transientParam.getLineIds().contains(temp.getId()))
|
||||
// .map(TerminalTree::getId).collect(Collectors.toList());
|
||||
lineList.retainAll(transientParam.getLineIds());
|
||||
}
|
||||
if (CollUtil.isEmpty(lineList)) {
|
||||
return new Page<>();
|
||||
|
||||
Reference in New Issue
Block a user