|
|
@ -251,7 +251,7 @@ public class PermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysP |
|
|
|
private static List<SysPermission> build(List<SysPermission> treeNodes) { |
|
|
|
private static List<SysPermission> build(List<SysPermission> treeNodes) { |
|
|
|
List<SysPermission> trees = new ArrayList<>(); |
|
|
|
List<SysPermission> trees = new ArrayList<>(); |
|
|
|
for (SysPermission treeNode : treeNodes) { |
|
|
|
for (SysPermission treeNode : treeNodes) { |
|
|
|
if ("0".equals(treeNode.getPid())) { |
|
|
|
if (treeNode.getPid()==0) { |
|
|
|
treeNode.setLevel(1); |
|
|
|
treeNode.setLevel(1); |
|
|
|
trees.add(findChildren(treeNode,treeNodes)); |
|
|
|
trees.add(findChildren(treeNode,treeNodes)); |
|
|
|
} |
|
|
|
} |
|
|
|