From 2b07ca45a45565bc97e2030a5223b4cb58e8a92a Mon Sep 17 00:00:00 2001 From: smallchill Date: Sat, 3 Aug 2019 00:16:13 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=94=AF=E6=8C=81=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/springblade/system/service/IRoleService.java | 2 +- .../org/springblade/system/service/impl/RoleServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/service/IRoleService.java b/blade-service/blade-system/src/main/java/org/springblade/system/service/IRoleService.java index 444bdd4c..51cbee31 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/service/IRoleService.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/service/IRoleService.java @@ -57,7 +57,7 @@ public interface IRoleService extends IService { * @param apiScopeIds 接口权限id集合 * @return 是否成功 */ - boolean grant(@NotEmpty List roleIds, @NotEmpty List menuIds, List dataScopeIds, List apiScopeIds); + boolean grant(@NotEmpty List roleIds, List menuIds, List dataScopeIds, List apiScopeIds); /** * 获取角色名 diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java index 8bd7d006..e08d0abe 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/service/impl/RoleServiceImpl.java @@ -75,7 +75,7 @@ public class RoleServiceImpl extends ServiceImpl implements IR @Override @Transactional(rollbackFor = Exception.class) - public boolean grant(@NotEmpty List roleIds, @NotEmpty List menuIds, List dataScopeIds, List apiScopeIds) { + public boolean grant(@NotEmpty List roleIds, List menuIds, List dataScopeIds, List apiScopeIds) { // 删除角色配置的菜单集合 roleMenuService.remove(Wrappers.update().lambda().in(RoleMenu::getRoleId, roleIds)); // 组装配置