From ca43526915c8ec8458f077ac4d0eb2a6d1c3795e Mon Sep 17 00:00:00 2001 From: ZhengJie <201507802@qq.com> Date: Sat, 6 Jun 2020 18:47:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E5=AE=8C=E5=96=84](v2.5):?= =?UTF-8?q?=20v2.5=20beta=20=E4=BF=AE=E5=A4=8D=E8=A7=92=E8=89=B2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=8F=9C=E5=8D=95=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #389 --- README.md | 14 -------------- .../system/service/impl/RoleServiceImpl.java | 6 +++--- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 0b3233ae..9f36079c 100644 --- a/README.md +++ b/README.md @@ -106,20 +106,6 @@ -#### 特别鸣谢 - -- 感谢 [JetBrains](https://www.jetbrains.com/) 提供的非商业开源软件开发授权 - -- 感谢 [PanJiaChen](https://github.com/PanJiaChen/vue-element-admin) 大佬提供的前端模板 - -- 感谢 [Moxun](https://github.com/moxun1639) 大佬提供的前端 Curd 通用组件 - -- 感谢 [zhy6599](https://gitee.com/zhy6599) 大佬提供的后端运维管理相关功能 - -- 感谢 [j.yao.SUSE](https://github.com/everhopingandwaiting) 大佬提供的匿名接口与Redis限流等功能 - -- 感谢 [d15801543974](https://github.com/d15801543974) 大佬提供的基于注解的通用查询方式 - #### 项目捐赠 项目的发展离不开你的支持,请作者喝杯咖啡吧☕ [Donate](https://el-admin.vip/donation/) diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java b/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java index 6e0ad818..5ad362a0 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java @@ -119,13 +119,13 @@ public class RoleServiceImpl implements RoleService { @Override public void updateMenu(Role resources, RoleDto roleDTO) { Role role = roleMapper.toEntity(roleDTO); - // 清理缓存 List users = userRepository.findByRoleId(role.getId()); Set userIds = users.stream().map(User::getId).collect(Collectors.toSet()); - redisUtils.delByKeys("menu::user:",userIds); - redisUtils.del("role::id:" + resources.getId()); // 更新菜单 role.setMenus(resources.getMenus()); + // 清理缓存 + redisUtils.delByKeys("menu::user:",userIds); + redisUtils.del("role::id:" + resources.getId()); roleRepository.save(role); }