feat:(feature/REQ-2750-1) 修改刷超管角色的接口
This commit is contained in:
parent
5390a9b9f1
commit
4e76df29f5
@ -200,14 +200,14 @@ public class PrivateRoleController {
|
||||
}
|
||||
|
||||
Map<Integer, SaasRoleRes> initSuperAdminRoles = allSuperAdminRoles.stream()
|
||||
.filter(e -> e.getWorkspaceId() == -1L)
|
||||
.filter(e -> e.getWorkspaceId() == 0L)
|
||||
.collect(Collectors.toMap(SaasRoleRes::getWorkspaceType, Function.identity()));
|
||||
if (initSuperAdminRoles.isEmpty()) {
|
||||
return "ok";
|
||||
}
|
||||
|
||||
List<SaasRoleRes> oldSuperAdminRoles = allSuperAdminRoles.stream()
|
||||
.filter(e -> e.getWorkspaceId() != -1L)
|
||||
.filter(e -> e.getWorkspaceId() > 0L)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (CollectionUtils.isEmpty(oldSuperAdminRoles)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user