|
|
@@ -43,6 +43,9 @@ public class MenuManage { |
|
|
|
} |
|
|
|
|
|
|
|
public void parentMenuCheck(List<Long> pidList, List<MenuRoleVO> menuRoles, Set<Long> menuIds) { |
|
|
|
if (pidList.isEmpty()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
List<Menu> menus = menuService.listByIds(pidList); |
|
|
|
if (menus.isEmpty()) { |
|
|
|
return; |
|
|
@@ -56,9 +59,6 @@ public class MenuManage { |
|
|
|
List<Long> tmpPidList = tmpSet.stream() |
|
|
|
.filter(pid -> !menuIds.contains(pid) && pid != BizConst.PARENT_ID) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
if (tmpPidList.isEmpty()) { |
|
|
|
return; |
|
|
|
} |
|
|
|
parentMenuCheck(tmpPidList, menuRoles, menuIds); |
|
|
|
} |
|
|
|
|
|
|
|