update 更新数据接口

This commit is contained in:
2023-04-18 16:46:47 +08:00
parent 05988af02f
commit 6add0e1b59
3 changed files with 22 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ public class TransactionService {
@Autowired
private MemberWalletInfoMapper memberWalletInfoMapper;
@Autowired
private IOrderBasicInfoService orderBasicInfoService;
@Autowired
@@ -160,7 +161,11 @@ public class TransactionService {
orderBasicInfoMapper.updateOrderDetail(dto.getOrderDetail());
}
// 清缓存
orderBasicInfoService.cleanCacheByOrderCode(orderCode, transactionCode);
try {
orderBasicInfoService.cleanCacheByOrderCode(orderCode, transactionCode);
} catch (Exception e) {
log.error("清缓存异常", e);
}
}
/**