fix: 修复MailAccountService 更新/删除缓存未清空

This commit is contained in:
YunaiV 2023-08-05 14:49:04 +08:00
parent c4755c49b1
commit 1f3794db77

View File

@ -58,7 +58,7 @@ public class MailAccountServiceImpl implements MailAccountService {
} }
@Override @Override
@CacheEvict(value = RedisKeyConstants.MAIL_ACCOUNT, key = "#updateReqVO.id") @CacheEvict(value = RedisKeyConstants.MAIL_ACCOUNT, key = "#id")
public void deleteMailAccount(Long id) { public void deleteMailAccount(Long id) {
// 校验是否存在账号 // 校验是否存在账号
validateMailAccountExists(id); validateMailAccountExists(id);