Commit f25daeef by 朱淼

fix bug

parent 891fb6fe
...@@ -177,6 +177,10 @@ public class PlatSpaceServiceImpl extends ServiceImpl<PlatSpaceMapper, PlatSpace ...@@ -177,6 +177,10 @@ public class PlatSpaceServiceImpl extends ServiceImpl<PlatSpaceMapper, PlatSpace
.in(PlatSpace::getId, parentIds)); .in(PlatSpace::getId, parentIds));
if (CollectionUtils.isNotEmpty(arrayList)) { if (CollectionUtils.isNotEmpty(arrayList)) {
spaceList.addAll(arrayList); spaceList.addAll(arrayList);
spaceList = spaceList.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(
() -> new TreeSet<>(Comparator.comparing(PlatSpace::getId))), ArrayList::new));
} }
}else { }else {
spaceList = list; spaceList = list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment