Merge remote-tracking branch 'origin/feature/REQ-1650' into feature/REQ-1650

This commit is contained in:
zuoqinbo 2023-12-01 15:40:35 +08:00
commit 1a8cdc41ee
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class IdentityAuthReq {
private Set<String> featureCode = new HashSet<>();
/** 指定角色ID - 预览用,不需要用户已配置角色 **/
private List<Long> specifyRoleIds;
private Set<Long> specifyRoleIds;
@Data

View File

@ -329,6 +329,8 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
relation.setWorkspaceId(k.getWorkspaceId());
relation.setIdentityId(identityAuthReq.getIdentityId());
relation.setIdentityType(identityAuthReq.getIdentityType().getCode());
// 使用角色ID替代不需要在查询一次
relation.setId(id);
return relation;
}).collect(Collectors.toList());
saasRoleUserRelations.addAll(relations);