| | |
| | | private ShopBalanceStatementClient shopBalanceStatementClient; |
| | | |
| | | @Resource |
| | | private ShopPointClient shopPointClient; |
| | | |
| | | @Resource |
| | | private RedisTemplate redisTemplate; |
| | | |
| | | @Resource |
| | |
| | | if (200 == r.getCode()) { |
| | | this.updateById(order); |
| | | } |
| | | |
| | | R r1 = balanceChangeRecordClient.deleteBalanceChangeRecord(orderId); |
| | | if (200 != r1.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | R r2 = userPointClient.deleteUserPointCopy(orderId); |
| | | if (200 != r2.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | R<Boolean> r3 = shopBalanceStatementClient.deleteShopBalanceStatementCopy(orderId); |
| | | if (200 != r3.getCode()) { // 项目没有分布式事务,此处报错可能会导致数据不一致 |
| | | throw new RuntimeException("订单取消失败"); |
| | | } |
| | | shopPointClient.deleteShopPointCopy(orderId); |
| | | return r; |
| | | } |
| | | |
| | |
| | | public Integer getShopSaleNumByShopIds(List<Integer> shopIds, Integer type) { |
| | | return this.baseMapper.getShopSaleNumByShopIds(shopIds, type); |
| | | } |
| | | |
| | | @Override |
| | | public List<OrderExport> getOrderExportList(OrderPageList orderPageList) { |
| | | return Collections.emptyList(); |
| | | } |
| | | } |