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

Merge pull request !557 from 杜继强/master
This commit is contained in:
芋道源码 2023-08-11 11:12:32 +00:00 committed by Gitee
commit 815755fa3a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);