fix:(2227-superAdmin):修复超管删除
This commit is contained in:
parent
4e48411a59
commit
0f98b5cf44
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user