🐛 修复事务中读取到旧缓存的 bug

This commit is contained in:
zhaojun
2022-09-20 18:30:03 +08:00
parent 47f6066733
commit c98c6af0f9

View File

@@ -80,7 +80,7 @@ public class StorageSourceConfigService {
* @param storageId
* 存储源 ID
*/
@CacheEvict(key = "#storageId")
@CacheEvict(key = "#storageId", beforeInvocation = true)
public int deleteByStorageId(Integer storageId) {
int deleteSize = storageSourceConfigMapper.deleteByStorageId(storageId);
log.info("删除存储源 ID 为 {} 的参数配置 {} 条", storageId, deleteSize);