新建目录时系统异常

tx
杨世强 1 year ago
parent 381ab35acb
commit e0c661bdd5

@ -45,7 +45,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里加入condition解决新建目录时出现系统异常问题
@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);

Loading…
Cancel
Save