...
|
...
|
@@ -3,6 +3,7 @@ package com.yohoufo.order.service; |
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.core.common.utils.DateUtil;
|
|
|
import com.yoho.core.config.ConfigReader;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohobuy.ufo.model.order.common.TabType;
|
...
|
...
|
@@ -28,6 +29,7 @@ import com.yohoufo.order.mq.DelayTime; |
|
|
import com.yohoufo.order.service.cache.CacheCleaner;
|
|
|
import com.yohoufo.order.service.cache.CacheKeyBuilder;
|
|
|
import com.yohoufo.order.service.impl.SellerAddressService;
|
|
|
import com.yohoufo.order.service.proxy.DeliveryMinutesService;
|
|
|
import com.yohoufo.order.service.proxy.InBoxFacade;
|
|
|
import com.yohoufo.order.service.proxy.OrderStatusFlowService;
|
|
|
import com.yohoufo.order.utils.BuyerOrderUtils;
|
...
|
...
|
@@ -71,8 +73,8 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
@Autowired
|
|
|
private OrderStatusFlowService orderStatusFlowService;
|
|
|
|
|
|
@Value("${mq.seller.deliverNotice.third}")
|
|
|
private int deliverMinutes ;
|
|
|
@Autowired
|
|
|
private DeliveryMinutesService deliveryMinutesService;
|
|
|
|
|
|
/**
|
|
|
* 更新订单状态
|
...
|
...
|
@@ -119,7 +121,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMapper.selectByOrderCode(uid, orderCode);
|
|
|
int skup = buyerOrderGoods.getSkup();
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
|
|
|
int deliveryHours = deliverMinutes/60;//把分钟转小时
|
|
|
int deliveryHours = deliveryMinutesService.getDeliverMinutesThird()/60;//把分钟转小时
|
|
|
inBoxFacade.sellerSkupPaidByBuyer(sellerOrderGoods,orderCode,deliveryHours);
|
|
|
|
|
|
//离发货截止12小时提醒
|
...
|
...
|
|