Sfoglia il codice sorgente

fix 可控角色不包含 自己拥有的角色

tags/24080901
niohe·erbao 1 anno fa
parent
commit
deb0f81906
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java Vedi File

@@ -519,7 +519,7 @@ public class UserInfoManage {
List<Long> controlledRoleIdList = new ArrayList<>();
if (CollUtil.isNotEmpty(userRoleList)) {
List<Long> roleIdList = userRoleList.stream().map(UserRole::getRoleId).distinct().collect(Collectors.toList());
controlledRoleIdList.addAll(roleIdList);
List<Role> roleList = iRoleService.list(Wrappers.lambdaQuery(Role.class).in(Role::getId, roleIdList));

for (Role role : roleList) {


Loading…
Annulla
Salva