|
@@ -149,6 +149,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
@@ -149,6 +149,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
149
|
@Autowired
|
149
|
@Autowired
|
150
|
private BuyerOrderGoodsMapperSupport buyerOrderGoodsMapperSupport;
|
150
|
private BuyerOrderGoodsMapperSupport buyerOrderGoodsMapperSupport;
|
151
|
|
151
|
|
|
|
152
|
+
|
|
|
153
|
+ @Autowired
|
|
|
154
|
+ FastDeliveryProxyService fastDeliveryProxyService;
|
|
|
155
|
+
|
152
|
/**
|
156
|
/**
|
153
|
* 提交订单
|
157
|
* 提交订单
|
154
|
* @param orderRequest
|
158
|
* @param orderRequest
|
|
@@ -582,6 +586,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
@@ -582,6 +586,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
582
|
// 恢复product skup的库存
|
586
|
// 恢复product skup的库存
|
583
|
boolean isReturnSuccess = productProxyService.returnStorage(skup);
|
587
|
boolean isReturnSuccess = productProxyService.returnStorage(skup);
|
584
|
|
588
|
|
|
|
589
|
+ // 急速发货的场合,释放库存
|
|
|
590
|
+ if (fastDeliveryProxyService.isFastDeliveryGoods(skup)){
|
|
|
591
|
+ fastDeliveryProxyService.cancel(skup);
|
|
|
592
|
+ }
|
|
|
593
|
+
|
585
|
//如有用券则退券
|
594
|
//如有用券则退券
|
586
|
buyerOrderCancelService.asyncRefundCoupon(buyerUid, orderCode, BuyerRefundCouponEvent.BizCase.PAY_TIME_OUT);
|
595
|
buyerOrderCancelService.asyncRefundCoupon(buyerUid, orderCode, BuyerRefundCouponEvent.BizCase.PAY_TIME_OUT);
|
587
|
|
596
|
|