...
|
...
|
@@ -5,16 +5,15 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.yoho.core.common.utils.DateUtil;
|
|
|
import com.yoho.error.ServiceError;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yohoufo.dal.order.SellerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.SellerOrderMapper;
|
|
|
import com.yohoufo.dal.order.SellerOrderMetaMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderMeta;
|
|
|
import com.yohoufo.dal.order.model.SellerOrder;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderMeta;
|
|
|
import com.yohoufo.order.common.OrderCodeType;
|
|
|
import com.yohoufo.order.common.SellerOrderStatus;
|
|
|
import com.yohoufo.order.constants.MetaKey;
|
|
|
import com.yohoufo.order.constants.OrderConstant;
|
|
|
import com.yohoufo.order.model.OrderInfo;
|
|
|
import com.yohoufo.order.model.request.PaymentRequest;
|
|
|
import com.yohoufo.order.model.response.PrepayResponse;
|
...
|
...
|
@@ -36,6 +35,9 @@ public class SellerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
SellerOrderMapper sellerOrderMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private SellerOrderGoodsMapper sellerOrderGoodsMapper;
|
|
|
|
|
|
@Autowired
|
|
|
SellerOrderMetaMapper sellerOrderMetaMapper;
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -46,7 +48,7 @@ public class SellerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
* @param orderInfo
|
|
|
*/
|
|
|
public void updateOrderStatusPaid(OrderInfo orderInfo){
|
|
|
|
|
|
logger.info("in update seller OrderStatus after Paid, orderInfo {}",orderInfo);
|
|
|
SellerOrder sellerOrder = new SellerOrder();
|
|
|
sellerOrder.setOrderCode(orderInfo.getOrderCode());
|
|
|
sellerOrder.setUid(orderInfo.getUid());
|
...
|
...
|
@@ -54,9 +56,13 @@ public class SellerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
sellerOrder.setStatus(sellerOrderStatus.getCode());
|
|
|
|
|
|
orderInfo.setStatus(sellerOrderStatus.getCode());
|
|
|
|
|
|
sellerOrder.setUpdateTime(DateUtil.getCurrentTimeSecond());
|
|
|
sellerOrderMapper.updateByOrderCode(sellerOrder);
|
|
|
//
|
|
|
SellerOrderGoods targetSog = new SellerOrderGoods();
|
|
|
targetSog.setId(orderInfo.getSkup());
|
|
|
targetSog.setStatus(sellerOrderStatus.getSkupStatus().getCode());
|
|
|
sellerOrderGoodsMapper.updateByPrimaryKeySelective(targetSog);
|
|
|
SellerOrderGoods tsog = new SellerOrderGoods();
|
|
|
tsog.setId(orderInfo.getSkup());
|
|
|
productProxyService.syncSkup(tsog,sellerOrderStatus.getSkupStatus());
|
...
|
...
|
|