From 1d592db287d1b38cf4e5f86591a4540594066289 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Fri, 8 Sep 2023 14:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0=E3=80=91=E3=80=90sys=E3=80=91?= =?UTF-8?q?=E3=80=90role=E3=80=91=E5=B0=81=E8=A3=85=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E9=99=90=E5=88=B6=E5=88=97=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modular/role/service/SysRoleLimitService.java | 10 ++++++++++ .../role/service/impl/SysRoleLimitServiceImpl.java | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/SysRoleLimitService.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/SysRoleLimitService.java index 84786cb71..8461ad1e0 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/SysRoleLimitService.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/SysRoleLimitService.java @@ -5,6 +5,8 @@ import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.RoleBindPermissio import cn.stylefeng.roses.kernel.sys.modular.role.pojo.response.RoleBindPermissionResponse; import com.baomidou.mybatisplus.extension.service.IService; +import java.util.Set; + /** * 角色权限限制 服务类 * @@ -29,4 +31,12 @@ public interface SysRoleLimitService extends IService { */ void updateRoleBindLimit(RoleBindPermissionRequest roleBindPermissionRequest); + /** + * 获取角色的限制列表(包含菜单id和菜单功能id) + * + * @author fengshuonan + * @since 2023/9/8 14:19 + */ + Set getRoleBindLimitList(Long roleId); + } \ No newline at end of file diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/SysRoleLimitServiceImpl.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/SysRoleLimitServiceImpl.java index 9080a33af..d8906b26c 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/SysRoleLimitServiceImpl.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/SysRoleLimitServiceImpl.java @@ -63,7 +63,8 @@ public class SysRoleLimitServiceImpl extends ServiceImpl getRoleBindLimitList(Long roleId) { + @Override + public Set getRoleBindLimitList(Long roleId) { LambdaQueryWrapper sysRoleLimitLambdaQueryWrapper = new LambdaQueryWrapper<>(); sysRoleLimitLambdaQueryWrapper.select(SysRoleLimit::getBusinessId); sysRoleLimitLambdaQueryWrapper.eq(SysRoleLimit::getRoleId, roleId);