Authored by tanling

急速退还库存 漏补

... ... @@ -149,6 +149,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
@Autowired
private BuyerOrderGoodsMapperSupport buyerOrderGoodsMapperSupport;
@Autowired
FastDeliveryProxyService fastDeliveryProxyService;
/**
* 提交订单
* @param orderRequest
... ... @@ -582,6 +586,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
// 恢复product skup的库存
boolean isReturnSuccess = productProxyService.returnStorage(skup);
// 急速发货的场合,释放库存
if (fastDeliveryProxyService.isFastDeliveryGoods(skup)){
fastDeliveryProxyService.cancel(skup);
}
//如有用券则退券
buyerOrderCancelService.asyncRefundCoupon(buyerUid, orderCode, BuyerRefundCouponEvent.BizCase.PAY_TIME_OUT);
... ...
... ... @@ -135,6 +135,10 @@ public class SubmitOrderServiceImpl implements ISubmitOrderService {
try{
productProxyService.returnStorage(orderBuilder.getSkup());
if (fastDeliveryProxyService.isFastDeliveryGoods(orderBuilder.getSkup())){
fastDeliveryProxyService.cancel(orderBuilder.getSkup());
}
}catch (Exception ex0){
CommonAlarmEventPublisher.publish("还库存失败", "ufo.product.cancelSaleSkup", "sku:["+orderBuilder.getSkup()+"]");
... ...