组件管理加排序
This commit is contained in:
@@ -111,7 +111,7 @@ public class ComponentServiceImpl extends ServiceImpl<ComponentMapper, Component
|
||||
componentVO.setChildren(
|
||||
v.stream()
|
||||
.filter(fun -> Objects.equals(ComponentState.FATHER_PID, fun.getPid()))
|
||||
.peek(funS -> funS.setChildren(getChildCategoryList(funS, v)))
|
||||
.peek(funS -> funS.setChildren(getChildCategoryList(funS, v))).sorted(Comparator.comparing(ComponentVO::getSort))
|
||||
.collect(Collectors.toList()));
|
||||
result.add(componentVO);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user