This commit is contained in:
2024-09-18 16:32:10 +08:00
parent 78ba6903c6
commit c5b63acb27
9 changed files with 9 additions and 457 deletions

View File

@@ -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,

View File

@@ -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());