feat:(REQ-2524) 有saas_role_user_relation有记录,但是对应的saas_role不存在的情况

This commit is contained in:
lilong 2024-06-04 14:59:16 +08:00
parent f0ea5340e4
commit 36ef8d048e

View File

@ -555,6 +555,8 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
} else {
owRoleInfo.setRoles(owRoleIds.stream()
.map(saasRoleRes::get)
// 有saas_role_user_relation有记录但是对应的saas_role不存在的情况
.filter(Objects::nonNull)
.collect(Collectors.toSet()));
}
owRoleMap.add(owRoleInfo);