【7.6.0】【sys】【首页用户详情接口】权限编码改为大写

pull/57/head
fengshuonan 2023-06-20 00:00:10 +08:00
parent 83865c975a
commit 0d2c924ee4
1 changed files with 6 additions and 1 deletions

View File

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