Sfoglia il codice sorgente

登录问题修复

黄远 5 anni fa
parent
commit
502afdacd1

+ 4 - 1
lift-system-service/src/main/java/cn/com/ty/lift/system/user/service/impl/MenuService.java

@@ -43,7 +43,10 @@ public class MenuService extends ServiceImpl<MenuMapper, Menu> implements IMenuS
                 .eq("role_id", roleId)
         );
         List<Long> menuIdList = ProjectUtils.getAttrList(roleMenuList, "menuId", null);
-        return (List<Menu>) this.listByIds(menuIdList);
+        if(menuIdList != null && menuIdList.size() > 0){
+            return (List<Menu>) this.listByIds(menuIdList);
+        }
+        return null;
     }
 
     @Override