fix : 角色查询bug

This commit is contained in:
TanJ 2023-12-01 15:30:28 +08:00
parent 495e026157
commit b50725a9c1
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);