feat:(REQ-2750) 处理岗位角色限制配置为null的情况

This commit is contained in:
lilong 2024-09-26 10:49:02 +08:00
parent a1bedadf51
commit 5210de5c3a

View File

@ -169,6 +169,7 @@ public class RoleUserService implements SaasRoleUserService {
.build()), "查询岗位角色限制配置", personJobIds) .build()), "查询岗位角色限制配置", personJobIds)
.stream() .stream()
.map(OrgJobRes::getExcludeRoleIds) .map(OrgJobRes::getExcludeRoleIds)
.filter(Objects::nonNull)
.flatMap(Collection::stream) .flatMap(Collection::stream)
.collect(Collectors.toSet()); .collect(Collectors.toSet());