fix:(2227-superAdmin):修复超管删除

This commit is contained in:
zhansihu 2024-04-17 16:32:35 +08:00
parent 4e48411a59
commit 0f98b5cf44

View File

@ -208,10 +208,10 @@ public class RoleUserService implements SaasRoleUserService {
}
private void removeOldSuperAdmin(Long id, Long workspaceId, Long ouId) {
saasRoleDao.remove(new LambdaQueryWrapper<SaasRole>()
.eq(SaasRole::getId, id)
.eq(SaasRole::getWorkspaceId, workspaceId)
.eq(SaasRole::getOwnerOuId, ouId));
roleUserRelationDao.remove(new LambdaQueryWrapper<SaasRoleUserRelation>()
.eq(SaasRoleUserRelation::getRoleId, id)
.eq(SaasRoleUserRelation::getWorkspaceId, workspaceId)
.eq(SaasRoleUserRelation::getOuId, ouId));
}
private SaasRole findSuperAdmin(Long workspaceId, Long ouId, Integer workspaceType) {