微调
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
<select id="getAllFunctions" resultType="FunctionVO">
|
||||
SELECT
|
||||
Id,Pid,
|
||||
`Name` title,
|
||||
`Code`,
|
||||
Name title,
|
||||
Code,
|
||||
Path routePath,
|
||||
Icon,Sort,
|
||||
Type,
|
||||
@@ -21,8 +21,8 @@
|
||||
<select id="getFunctionsByList" resultType="FunctionVO">
|
||||
SELECT
|
||||
Id,Pid,
|
||||
`Name` title,
|
||||
`Code`,
|
||||
Name title,
|
||||
Code,
|
||||
Path routePath,
|
||||
Icon,Sort,
|
||||
Type,
|
||||
@@ -42,8 +42,8 @@
|
||||
<select id="getUserFunctionsByList" resultType="FunctionVO">
|
||||
SELECT
|
||||
Id,Pid,
|
||||
`Name` title,
|
||||
`Code`,
|
||||
Name title,
|
||||
Code,
|
||||
Path routePath,
|
||||
Icon,Sort,
|
||||
Type,
|
||||
@@ -63,8 +63,8 @@
|
||||
<select id="getByList" resultType="FunctionVO">
|
||||
SELECT
|
||||
Id,Pid,
|
||||
`Name` title,
|
||||
`Code`,
|
||||
Name title,
|
||||
Code,
|
||||
Path routePath,
|
||||
Icon,Sort,
|
||||
Type,
|
||||
|
||||
@@ -190,7 +190,7 @@ public class FunctionServiceImpl extends ServiceImpl<FunctionMapper, Function> i
|
||||
}
|
||||
List<FunctionVO> functionVOList = functionMapper.getFunctionsByList(functionList);
|
||||
result = functionVOList.stream()
|
||||
.filter(fun -> Objects.equals(FunctionState.FATHER_PID,fun.getPid()))
|
||||
.filter(fun -> Objects.equals(FunctionState.FATHER_PID,fun.getPid().trim()))
|
||||
.peek(funS -> funS.setChildren(getChildCategoryList(funS, functionVOList)))
|
||||
.sorted(Comparator.comparingInt(FunctionVO::getSort))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Reference in New Issue
Block a user