🔥 2.0.0 版本发布准备~
This commit is contained in:
parent
5693ebeb87
commit
b2ec898932
File diff suppressed because it is too large
Load Diff
@ -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) {
|
||||||
// 校验是否存在
|
// 校验是否存在
|
||||||
|
Loading…
Reference in New Issue
Block a user