Commit 1f3794db77ae8c7f367c7cee8f5fc56cba72206b
1 parent
c4755c49
fix: 修复MailAccountService 更新/删除缓存未清空
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/mail/MailAccountServiceImpl.java
| ... | ... | @@ -58,7 +58,7 @@ public class MailAccountServiceImpl implements MailAccountService { |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | @Override |
| 61 | - @CacheEvict(value = RedisKeyConstants.MAIL_ACCOUNT, key = "#updateReqVO.id") | |
| 61 | + @CacheEvict(value = RedisKeyConstants.MAIL_ACCOUNT, key = "#id") | |
| 62 | 62 | public void deleteMailAccount(Long id) { |
| 63 | 63 | // 校验是否存在账号 |
| 64 | 64 | validateMailAccountExists(id); | ... | ... |