update 清缓存

This commit is contained in:
2023-03-14 10:10:06 +08:00
parent 76835fbcba
commit fd247c8ba8

View File

@@ -137,8 +137,10 @@ public class TransactionService {
if (StringUtils.isNotBlank(orderCode)) {
String redisKey = CacheConstants.GET_ORDER_INFO_BY_ORDER_CODE + orderCode;
redisCache.deleteObject(redisKey);
String redisKey2 = CacheConstants.GET_ORDER_INFO_BY_TRANSACTION_CODE + transactionCode;
redisCache.deleteObject(redisKey2);
}
if (StringUtils.isNotBlank(transactionCode)) {
String redisKey = CacheConstants.GET_ORDER_INFO_BY_TRANSACTION_CODE + transactionCode;
redisCache.deleteObject(redisKey);
}
}