...
|
...
|
@@ -60,7 +60,6 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
@Autowired
|
|
|
BuyerOrderMetaMapper buyerOrderMetaMapper;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
InBoxFacade inBoxFacade;
|
|
|
|
...
|
...
|
@@ -579,7 +578,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
// skup --> product_name
|
|
|
SellerOrderGoods sellerOrderGoods = sellerOrderGoodsMapper.selectByPrimaryKey(buyerOrderGoods.getSkup());
|
|
|
|
|
|
OrderInfo orderInfo = buildOrderInfo(buyerOrder);
|
|
|
OrderInfo orderInfo = buildOrderInfo(buyerOrder, buyerOrderGoods);
|
|
|
if (sellerOrderGoods == null){
|
|
|
return orderInfo;
|
|
|
}
|
...
|
...
|
@@ -588,7 +587,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
return orderInfo;
|
|
|
}
|
|
|
|
|
|
private OrderInfo buildOrderInfo(BuyerOrder buyerOrder ) {
|
|
|
private OrderInfo buildOrderInfo(BuyerOrder buyerOrder,BuyerOrderGoods buyerOrderGoods) {
|
|
|
OrderInfo orderInfo = OrderInfo.builder()
|
|
|
.id(buyerOrder.getId())
|
|
|
.uid(buyerOrder.getUid())
|
...
|
...
|
@@ -601,6 +600,7 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
.orderCodeType(OrderCodeType.BUYER_TYPE)
|
|
|
.attributes(buyerOrder.getAttributes())
|
|
|
.sourceStatus(buyerOrder.getStatus())
|
|
|
.skup(buyerOrderGoods!=null?buyerOrderGoods.getSkup():0)
|
|
|
.payExpireTime(DelayTime.BUYER_ORDER_WAITING_PAY)
|
|
|
.payExpire(buyerOrder.getCreateTime()+ covertFen(DelayTime.SELLER_ORDER_WAITING_PAY))
|
|
|
.build();
|
...
|
...
|
@@ -624,7 +624,9 @@ public class BuyerOrderPaymentService extends AbstractOrderPaymentService { |
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
|
|
}
|
|
|
|
|
|
return buildOrderInfo(buyerOrder );
|
|
|
BuyerOrderGoods buyerOrderGoods = buyerOrderGoodsMapper.selectByOrderCode(buyerOrder.getUid(), buyerOrder.getOrderCode());
|
|
|
|
|
|
return buildOrderInfo(buyerOrder,buyerOrderGoods);
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|