20230922-ljl-fixBug
ljl 1 year ago
parent 88368aab34
commit 42b4dbf580

@ -337,11 +337,13 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
} else { } else {
savePurchaseOrderInfo(purchaseOrderInfo, opOrder, skuIdAndOpOrderChildMap); savePurchaseOrderInfo(purchaseOrderInfo, opOrder, skuIdAndOpOrderChildMap);
} }
dsPurchaseOrderOutStorageAndUpdateRemark(purchaseOrderInfo, opOrder, purchaseOrder);
} }
private void dsPurchaseOrderOutStorageAndUpdateRemark(PurchaseOrderRequestDTO purchaseOrderInfo, OpOrder opOrder, PurchaseOrder purchaseOrder) { private void dsPurchaseOrderOutStorageAndUpdateRemark(PurchaseOrderRequestDTO purchaseOrderInfo, OpOrder opOrder, PurchaseOrder purchaseOrder) {
if (checkPurchaseOrderStatusCanOutStorage(purchaseOrderInfo, opOrder)) { if (checkPurchaseOrderStatusCanOutStorage(purchaseOrderInfo, opOrder)) {
dsPurchaseAutoOutStorage(opOrder, purchaseOrder);
} }
if (checkNeedBuildPurchaseOrderRemark(purchaseOrderInfo, purchaseOrder)) { if (checkNeedBuildPurchaseOrderRemark(purchaseOrderInfo, purchaseOrder)) {
buildAndUpdateNewPurchaseOrderRemark(opOrder); buildAndUpdateNewPurchaseOrderRemark(opOrder);
@ -351,9 +353,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
private void dsPurchaseAutoOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder) { private void dsPurchaseAutoOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder) {
DsPurchaseSetting dsPurchaseSetting = dsPurchaseSettingService.getShopSetting(opOrder.getShopId()); DsPurchaseSetting dsPurchaseSetting = dsPurchaseSettingService.getShopSetting(opOrder.getShopId());
if (opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_WAIT_SELLER_SEND_GOODS)) { if (opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_WAIT_SELLER_SEND_GOODS)) {
dsOrderOutStorage(opOrder, purchaseOrder, dsPurchaseSetting);
} else if (opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_WAIT_BUYER_CONFIRM_GOODS) || opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_PART_DELIVERY)) { } else if (opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_WAIT_BUYER_CONFIRM_GOODS) || opOrder.getOrderStatus().equals(OrderConst.ORDER_STATUS_PART_DELIVERY)) {
dsOrderOutStorageOrUpdateOutStorageLogistics(opOrder, purchaseOrder, dsPurchaseSetting);
} else { } else {
throw new RuntimeException("订单状态未达到发货条件"); throw new RuntimeException("订单状态未达到发货条件");
} }
@ -361,8 +363,10 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
private void dsOrderOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder, DsPurchaseSetting dsPurchaseSetting) { private void dsOrderOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder, DsPurchaseSetting dsPurchaseSetting) {
Long nearExpShipTime = checkDsPurchaseAutoOutStorage(opOrder, purchaseOrder, dsPurchaseSetting); Long nearExpShipTime = checkDsPurchaseAutoOutStorage(opOrder, purchaseOrder, dsPurchaseSetting);
}
private void dsOrderOutStorageOrUpdateOutStorageLogistics(OpOrder opOrder, PurchaseOrder purchaseOrder, DsPurchaseSetting dsPurchaseSetting) {
Long nearExpShipTime = checkDsPurchaseAutoOutStorage(opOrder, purchaseOrder, dsPurchaseSetting);
} }
private Long checkDsPurchaseAutoOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder, DsPurchaseSetting dsPurchaseSetting) { private Long checkDsPurchaseAutoOutStorage(OpOrder opOrder, PurchaseOrder purchaseOrder, DsPurchaseSetting dsPurchaseSetting) {

Loading…
Cancel
Save