From 4e76df29f5995304b2f726d52d7d9d4f5953ca58 Mon Sep 17 00:00:00 2001 From: lilong Date: Wed, 9 Oct 2024 21:06:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:(feature/REQ-2750-1)=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=B7=E8=B6=85=E7=AE=A1=E8=A7=92=E8=89=B2=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/axzo/tyr/server/controller/PrivateRoleController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tyr-server/src/main/java/cn/axzo/tyr/server/controller/PrivateRoleController.java b/tyr-server/src/main/java/cn/axzo/tyr/server/controller/PrivateRoleController.java index 308a2666..37a731f9 100644 --- a/tyr-server/src/main/java/cn/axzo/tyr/server/controller/PrivateRoleController.java +++ b/tyr-server/src/main/java/cn/axzo/tyr/server/controller/PrivateRoleController.java @@ -200,14 +200,14 @@ public class PrivateRoleController { } Map 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 oldSuperAdminRoles = allSuperAdminRoles.stream() - .filter(e -> e.getWorkspaceId() != -1L) + .filter(e -> e.getWorkspaceId() > 0L) .collect(Collectors.toList()); if (CollectionUtils.isEmpty(oldSuperAdminRoles)) {