| | |
| | | this.updateById(order); |
| | | } |
| | | |
| | | R r1 = balanceChangeRecordClient.deleteBalanceChangeRecord(orderId); |
| | | R r1 = balanceChangeRecordClient.deleteBalanceChangeRecordCopy(orderId, Arrays.asList(4)); |
| | | if (200 != r1.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | R r2 = userPointClient.deleteUserPointCopy(orderId); |
| | | R r2 = userPointClient.deleteUserPointCopy(orderId, Arrays.asList(2,8,9,10,14)); |
| | | if (200 != r2.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | R<Boolean> r3 = shopBalanceStatementClient.deleteShopBalanceStatementCopy(orderId); |
| | | R<Boolean> r3 = shopBalanceStatementClient.deleteShopBalanceStatementCopy(orderId, Arrays.asList(1,2,3)); |
| | | if (200 != r3.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | shopPointClient.deleteShopPointCopy(orderId); |
| | | shopPointClient.deleteShopPointCopy(orderId, Arrays.asList(1,2,3)); |
| | | return r; |
| | | } |
| | | |