From 5ed091836a37ef558325a29e38a556665519490f Mon Sep 17 00:00:00 2001 From: stylefeng Date: Sun, 26 Jan 2025 15:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.3.3=E3=80=91=E3=80=90dataScope?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E5=B1=82=E7=BA=A7=E5=8F=8A=E4=BB=A5=E4=B8=8B=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=8C=83=E5=9B=B4=E7=9A=84=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modular/role/service/impl/UserRoleDataScopeImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/UserRoleDataScopeImpl.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/UserRoleDataScopeImpl.java index b1a91c3e3..44d93026b 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/UserRoleDataScopeImpl.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/UserRoleDataScopeImpl.java @@ -158,7 +158,9 @@ public class UserRoleDataScopeImpl implements UserRoleDataScopeApi { // 如果是32-指定机构层级及以下 else if (DataScopeTypeEnum.DEFINE_ORG_LEVEL_WITH_CHILD.getCode().equals(sysRoleDataScope.getDataScopeType())) { - // todo + Long parentOrgLevelOrgId = organizationServiceApi.getParentOrgLevel(loginUser.getCurrentOrgId(), sysRoleDataScope.getOrgLevelCode()); + Set subOrgIdList = this.getPointOrgAndSub(parentOrgLevelOrgId); + userOrgIdList.addAll(subOrgIdList); } // 如果是40-指定机构集合数据