|
|
@@ -187,11 +187,11 @@ public class PosPlugin extends AbstractUserCalcPlugin
|
|
|
.map(PartyEntityTreePo::getId)
|
|
|
.collect(Collectors.toList());
|
|
|
//get parent nodes
|
|
|
- List<String> posWithParent = treeData.stream().filter(x -> StringUtils.containsAny(x.getId(), pkArray))
|
|
|
- .flatMap(y -> Arrays.stream(y.getPath().split("\\.",0)))
|
|
|
- .collect(Collectors.toList());
|
|
|
+// List<String> posWithParent = treeData.stream().filter(x -> StringUtils.containsAny(x.getId(), pkArray))
|
|
|
+// .flatMap(y -> Arrays.stream(y.getPath().split("\\.",0)))
|
|
|
+// .collect(Collectors.toList());
|
|
|
//combine and distinct
|
|
|
- List<String> pksWithParentChild = Stream.of(posWithChild, posWithParent)
|
|
|
+ List<String> pksWithParentChild = Stream.of(posWithChild)
|
|
|
.flatMap(Collection::stream)
|
|
|
.distinct()
|
|
|
.collect(Collectors.toList());
|