@@ -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