This commit is contained in:
YunaiV 2024-01-26 21:28:24 +08:00
commit f7fbbc6da3
2 changed files with 1209 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@ -59,7 +59,7 @@ public class MailTemplateServiceImpl implements MailTemplateService {
} }
@Override @Override
@CacheEvict(cacheNames = RedisKeyConstants.NOTIFY_TEMPLATE, @CacheEvict(cacheNames = RedisKeyConstants.MAIL_TEMPLATE,
allEntries = true) // allEntries 清空所有缓存因为可能修改到 code 字段不好清理 allEntries = true) // allEntries 清空所有缓存因为可能修改到 code 字段不好清理
public void updateMailTemplate(@Valid MailTemplateSaveReqVO updateReqVO) { public void updateMailTemplate(@Valid MailTemplateSaveReqVO updateReqVO) {
// 校验是否存在 // 校验是否存在
@ -87,7 +87,7 @@ public class MailTemplateServiceImpl implements MailTemplateService {
} }
@Override @Override
@CacheEvict(cacheNames = RedisKeyConstants.NOTIFY_TEMPLATE, @CacheEvict(cacheNames = RedisKeyConstants.MAIL_TEMPLATE,
allEntries = true) // allEntries 清空所有缓存因为 id 不是直接的缓存 code不好清理 allEntries = true) // allEntries 清空所有缓存因为 id 不是直接的缓存 code不好清理
public void deleteMailTemplate(Long id) { public void deleteMailTemplate(Long id) {
// 校验是否存在 // 校验是否存在