Selaa lähdekoodia

菜单模块调整

dzx 3 viikkoa sitten
vanhempi
commit
d25573415b

+ 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)