浏览代码

菜单模块调整

dzx 3 周之前
父节点
当前提交
d25573415b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/xjrsoft/module/system/service/impl/MenuServiceImpl.java

+ 1 - 1
src/main/java/com/xjrsoft/module/system/service/impl/MenuServiceImpl.java

@@ -250,7 +250,7 @@ public class MenuServiceImpl extends MPJBaseServiceImpl<MenuMapper, Menu> implem
         List<MenuVo> result = new ArrayList<>();
         Map<Long, Long> menuGroupMap = new HashMap<>();
         Map<Long, Integer> menuDisabledMap = new HashMap<>();
-        if(roleIds.contains(RoleEnum.STUDENT.getCode())){
+        if(roleIds.contains(RoleEnum.STUDENT.getCode()) || roleIds.contains(RoleEnum.PARENT.getCode())){
             LambdaQueryWrapper<XjrMenuGroupSet> queryWrapper = new LambdaQueryWrapper<>();
             queryWrapper
                     .orderByAsc(XjrMenuGroupSet::getId)