Authored by tanling

急速退还库存 漏补

@@ -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
@@ -135,6 +135,10 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService { @@ -135,6 +135,10 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService {
135 try{ 135 try{
136 productProxyService.returnStorage(orderBuilder.getSkup()); 136 productProxyService.returnStorage(orderBuilder.getSkup());
137 137
  138 + if (fastDeliveryProxyService.isFastDeliveryGoods(orderBuilder.getSkup())){
  139 + fastDeliveryProxyService.cancel(orderBuilder.getSkup());
  140 + }
  141 +
138 }catch (Exception ex0){ 142 }catch (Exception ex0){
139 143
140 CommonAlarmEventPublisher.publish("还库存失败", "ufo.product.cancelSaleSkup", "sku:["+orderBuilder.getSkup()+"]"); 144 CommonAlarmEventPublisher.publish("还库存失败", "ufo.product.cancelSaleSkup", "sku:["+orderBuilder.getSkup()+"]");