Commit b5515799dcd03575f2e618c58e2a7b6bd2a68d1e
1 parent
b53bfb09
!557 修改创建菜单时permission为空,缓存KEY 为空的BUG
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java
| ... | ... | @@ -45,7 +45,8 @@ public class MenuServiceImpl implements MenuService { |
| 45 | 45 | private TenantService tenantService; |
| 46 | 46 | |
| 47 | 47 | @Override |
| 48 | - @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, condition = "#reqVO.permission != null", key = "#reqVO.permission") | |
| 48 | + @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission", | |
| 49 | + condition = "#reqVO.permission != null") | |
| 49 | 50 | public Long createMenu(MenuCreateReqVO reqVO) { |
| 50 | 51 | // 校验父菜单存在 |
| 51 | 52 | validateParentMenu(reqVO.getParentId(), null); | ... | ... |