From 73ec23460e039572a0a8b242c6b4be71753b5194 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 17 May 2021 23:06:25 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=A0=91=E7=BB=84=E4=BB=B6=E6=9C=AA=E5=85=A8=E9=80=89=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=88=B6=E8=8A=82=E7=82=B9=E6=B2=A1=E6=9C=89=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E4=BB=8E=E8=80=8C=E5=BC=95=E5=8F=91=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=94=9F=E6=88=90=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springblade/system/mapper/MenuMapper.java | 16 +++++++++++++ .../springblade/system/mapper/MenuMapper.xml | 17 +++++++++++++ .../system/service/impl/MenuServiceImpl.java | 24 ++++++++++++++++++- 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.java b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.java index 2515859e..6925a4e2 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.java @@ -133,6 +133,22 @@ public interface MenuMapper extends BaseMapper { */ List roleMenu(List roleId, Long topMenuId); + /** + * 权限配置菜单 + * + * @param roleId + * @return + */ + List roleMenuByRoleId(List roleId); + + /** + * 权限配置菜单 + * + * @param topMenuId + * @return + */ + List roleMenuByTopMenuId(Long topMenuId); + /** * 菜单树形结构 * diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.xml b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.xml index f4e2f150..b0a9dbf0 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.xml +++ b/blade-service/blade-system/src/main/java/org/springblade/system/mapper/MenuMapper.xml @@ -124,6 +124,23 @@ ) + + + + +