!557 修改创建菜单时permission为空,缓存KEY 为空的BUG

pull/51/head
YunaiV 2023-08-11 19:32:40 +08:00
parent 58d70ace8a
commit 2201a3ad0f
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ public class MenuServiceImpl implements MenuService {
private TenantService tenantService; private TenantService tenantService;
@Override @Override
@CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission") @CacheEvict(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#reqVO.permission",
condition = "#reqVO.permission != null")
public Long createMenu(MenuCreateReqVO reqVO) { public Long createMenu(MenuCreateReqVO reqVO) {
// 校验父菜单存在 // 校验父菜单存在
validateParentMenu(reqVO.getParentId(), null); validateParentMenu(reqVO.getParentId(), null);