【8.1.0】【user-org】更新角色筛选

pull/60/head
fengshuonan 2024-01-18 19:13:24 +08:00
parent 3dd43b8d23
commit 197c676d6d
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
// 2. 获取用户当前登录公司下的角色id集合 // 2. 获取用户当前登录公司下的角色id集合
Set<Long> currentCompanyRoleIdList = paramRoles.stream() Set<Long> currentCompanyRoleIdList = paramRoles.stream()
.filter(i -> RoleTypeEnum.COMPANY_ROLE.getCode().equals(i.getRoleType()) && i.getRoleOrgId() != null && i.getRoleOrgId().equals(userCurrentOrgId)).map(SysUserRole::getRoleId) .filter(i -> i.getRoleOrgId() != null && i.getRoleOrgId().equals(userCurrentOrgId)).map(SysUserRole::getRoleId)
.collect(Collectors.toSet()); .collect(Collectors.toSet());
// 3. 合并两个集合并返回 // 3. 合并两个集合并返回