From 14c7465bc6d281e8e7bb88176857b012723e5f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E7=BB=A7=E5=BC=BA?= <550257912@qq.com> Date: Tue, 8 Aug 2023 00:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9B=E5=BB=BA=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=97=B6permission=E4=B8=BA=E7=A9=BA=EF=BC=8C?= =?UTF-8?q?=E7=BC=93=E5=AD=98KEY=20=E4=B8=BA=E7=A9=BA=E7=9A=84BUG=20?= =?UTF-8?q?=EF=BC=8C=E5=88=A4=E6=96=AD=20reqVO.permission=20=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=81=9A=20@CacheEvict=20?= =?UTF-8?q?=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/system/service/permission/MenuServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java index a108e8f77..1adc0a51e 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java @@ -45,7 +45,7 @@ public class MenuServiceImpl implements MenuService { private TenantService tenantService; @Override - @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission") + @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, condition = "#reqVO.permission != null", key = "#reqVO.permission") public Long createMenu(MenuCreateReqVO reqVO) { // 校验父菜单存在 validateParentMenu(reqVO.getParentId(), null);