mirror of https://gitee.com/stylefeng/roses
【8.1.0】【user-org】更新角色筛选
parent
3dd43b8d23
commit
197c676d6d
|
@ -386,7 +386,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
|
|||
|
||||
// 2. 获取用户当前登录公司下的角色id集合
|
||||
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());
|
||||
|
||||
// 3. 合并两个集合并返回
|
||||
|
|
Loading…
Reference in New Issue