mirror of https://gitee.com/stylefeng/roses
【7.6.0】【sys】【首页用户详情接口】权限编码改为大写
parent
83865c975a
commit
0d2c924ee4
|
@ -212,7 +212,7 @@ public class UserIndexInfoService {
|
|||
List<Long> menuIdList = sysRoleMenuService.getRoleBindMenuIdList(roleIdList);
|
||||
List<Long> menuOptionsIdList = sysRoleMenuOptionsService.getRoleBindMenuOptionsIdList(roleIdList);
|
||||
|
||||
HashSet<String> permissionCodeList = new HashSet<>();
|
||||
Set<String> permissionCodeList = new HashSet<>();
|
||||
|
||||
// 获取菜单对应的菜单编码集合
|
||||
List<SysMenu> userMenuList = sysMenuService.getIndexMenuInfoList(menuIdList);
|
||||
|
@ -223,6 +223,11 @@ public class UserIndexInfoService {
|
|||
List<String> optionsCodeList = sysMenuOptionsService.getOptionsCodeList(menuOptionsIdList);
|
||||
permissionCodeList.addAll(optionsCodeList);
|
||||
|
||||
// 功能编码转化为大写
|
||||
if (ObjectUtil.isNotEmpty(permissionCodeList)) {
|
||||
permissionCodeList = permissionCodeList.stream().map(String::toUpperCase).collect(Collectors.toSet());
|
||||
}
|
||||
|
||||
userIndexInfo.setPermissionCodeList(permissionCodeList);
|
||||
|
||||
return userMenuList;
|
||||
|
|
Loading…
Reference in New Issue