...
|
...
|
@@ -314,7 +314,7 @@ public class AppraiseService { |
|
|
}
|
|
|
// 买家接受瑕疵,走非寄存流程
|
|
|
else if (buyerOrder.getStatus() == OrderStatus.MINI_FAULT_ACCEPT.getCode()) {
|
|
|
deliveryNonDepositGoodsToBuyerAndRun(appraiseExpressInfoBo,buyerOrder,sog -> {
|
|
|
deliveryGoodsToBuyerAndRun(appraiseExpressInfoBo,buyerOrder, sog -> {
|
|
|
// 通知买家已发货
|
|
|
buyerNoticeFacade.deliveryDepositGoodsToBuyer(buyerOrder.getUid(), appraiseExpressInfoBo.getWayBillCode(), sog,
|
|
|
sellerOrderGoods -> Optional.ofNullable(sellerOrderGoods).map(SellerOrderGoods::getProductId).map(productMapper::selectByPrimaryKey).orElse(null));
|
...
|
...
|
@@ -325,7 +325,7 @@ public class AppraiseService { |
|
|
}
|
|
|
}
|
|
|
|
|
|
private void deliveryNonDepositGoodsToBuyerAndRun(AppraiseExpressInfoBo appraiseExpressInfoBo, BuyerOrder buyerOrder, Consumer<SellerOrderGoods> run) {
|
|
|
private void deliveryGoodsToBuyerAndRun(AppraiseExpressInfoBo appraiseExpressInfoBo, BuyerOrder buyerOrder, Consumer<SellerOrderGoods> run) {
|
|
|
final Long orderCode = buyerOrder.getOrderCode();
|
|
|
final OrderStatus expectOrderStatus;
|
|
|
final OrderStatus targetOrderStatus = OrderStatus.WAITING_RECEIVE;
|
...
|
...
|
@@ -373,7 +373,7 @@ public class AppraiseService { |
|
|
}
|
|
|
|
|
|
private void deliveryNonDepositGoodsToBuyer(AppraiseExpressInfoBo appraiseExpressInfoBo, BuyerOrder buyerOrder) {
|
|
|
deliveryNonDepositGoodsToBuyerAndRun(appraiseExpressInfoBo, buyerOrder, sellerOrderGoods -> {
|
|
|
deliveryGoodsToBuyerAndRun(appraiseExpressInfoBo, buyerOrder, sellerOrderGoods -> {
|
|
|
Product product = Optional.ofNullable(sellerOrderGoods).map(SellerOrderGoods::getProductId).map(productMapper::selectByPrimaryKey).orElse(null);
|
|
|
buyerNoticeFacade.deliveryGoodsToBuyer(buyerOrder, sellerOrderGoods, product);
|
|
|
});
|
...
|
...
|
|