...
|
...
|
@@ -5,7 +5,10 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.bo.OrderInfo;
|
|
|
import com.yohobuy.ufo.model.order.common.*;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderAttributes;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderCodeType;
|
|
|
import com.yohobuy.ufo.model.order.common.OrderStatus;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
|
|
import com.yohobuy.ufo.model.order.constants.SkupType;
|
|
|
import com.yohoufo.common.alarm.EventBusPublisher;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
...
|
...
|
@@ -72,7 +75,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
@Autowired
|
|
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private CacheCleaner cacheCleaner;
|
|
|
|
...
|
...
|
@@ -168,7 +170,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
processInStockOrder(buyerOrder, sellerOrderGoods);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
* @param buyerOrder
|
|
|
* @param sellerOrderGoods
|
|
|
*/
|
|
|
private void processDepositOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
|
|
SkupType skupType = SkupType.getSkupType(sellerOrderGoods.getAttributes());
|
|
|
//寄存订单 & 闪购商品
|
...
|
...
|
@@ -182,6 +188,11 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 现货
|
|
|
* @param orderInfo
|
|
|
* @param sellerOrderGoods
|
|
|
*/
|
|
|
private void processInStockOrder(BuyerOrder orderInfo, SellerOrderGoods sellerOrderGoods){
|
|
|
Integer uid = orderInfo.getUid();
|
|
|
Integer sellerUid = orderInfo.getSellerUid();
|
...
|
...
|
@@ -231,16 +242,18 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
orderOverTimeService.insertDeliveryTime(new OrderOverTime(orderCode, ts + secondsOfLimit, minutes));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 急速发货非寄存订单,商品:闪购
|
|
|
* @param buyerOrder
|
|
|
* @param sellerOrderGoods
|
|
|
*/
|
|
|
private void processQuickDeliverOrder(BuyerOrder buyerOrder, SellerOrderGoods sellerOrderGoods){
|
|
|
|
|
|
// notice
|
|
|
inBoxFacade.noticeWhenQuickDeliverOrderPaid(buyerOrder.getUid(), buyerOrder.getOrderCode(), sellerOrderGoods);
|
|
|
Integer sellerUid = buyerOrder.getSellerUid();
|
|
|
Integer buyerUid = buyerOrder.getUid();
|
|
|
Long orderCode = buyerOrder.getOrderCode();
|
|
|
Integer skup = sellerOrderGoods.getId();
|
|
|
|
|
|
if (BuyerOrderUtils.isQuickDeliver(buyerOrder.getAttributes())) {
|
|
|
try {
|
|
|
// 插入物流调拨信息
|
|
|
expressInfoService.saveOperateTransferExpressInfo(buyerUid, orderCode,
|
...
|
...
|
@@ -252,7 +265,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
sellerUid, buyerUid, orderCode, skup);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void processAfterPay(OrderInfo orderInfo) {
|
...
|
...
|
|