Merge branch 'hotfix/20250218' into 'master'
feat:(hotfix/20250218) 解决角色分组无法移动的问题 See merge request universal/infrastructure/backend/tyr!431
This commit is contained in:
commit
f392b41d8b
@ -15,6 +15,7 @@ import cn.axzo.tyr.client.model.vo.SaasRoleGroupVO;
|
|||||||
import cn.axzo.tyr.server.repository.entity.SaasRoleGroup;
|
import cn.axzo.tyr.server.repository.entity.SaasRoleGroup;
|
||||||
import cn.axzo.tyr.server.service.SaasRoleGroupService;
|
import cn.axzo.tyr.server.service.SaasRoleGroupService;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
import com.google.common.collect.Sets;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
@ -101,6 +102,7 @@ public class SaasRoleGroupController implements SaasRoleGroupApi {
|
|||||||
.sort(exchangeRoleGroup.getSort())
|
.sort(exchangeRoleGroup.getSort())
|
||||||
.workspaceId(saasRoleGroup.getWorkspaceId())
|
.workspaceId(saasRoleGroup.getWorkspaceId())
|
||||||
.ouId(saasRoleGroup.getOuId())
|
.ouId(saasRoleGroup.getOuId())
|
||||||
|
.ouTypeCode(Lists.newArrayList(saasRoleGroup.getOuTypeCode()))
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
saasRoleGroupService.saveOrUpdate(SaasRoleGroupVO.builder()
|
saasRoleGroupService.saveOrUpdate(SaasRoleGroupVO.builder()
|
||||||
@ -108,6 +110,7 @@ public class SaasRoleGroupController implements SaasRoleGroupApi {
|
|||||||
.sort(saasRoleGroup.getSort())
|
.sort(saasRoleGroup.getSort())
|
||||||
.workspaceId(exchangeRoleGroup.getWorkspaceId())
|
.workspaceId(exchangeRoleGroup.getWorkspaceId())
|
||||||
.ouId(exchangeRoleGroup.getOuId())
|
.ouId(exchangeRoleGroup.getOuId())
|
||||||
|
.ouTypeCode(Lists.newArrayList(exchangeRoleGroup.getOuTypeCode()))
|
||||||
.build());
|
.build());
|
||||||
return ApiResult.ok();
|
return ApiResult.ok();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user