Commit 14dc8f3d authored by 332784038@qq.com's avatar 332784038@qq.com

bug修复

parent fec004c1
...@@ -1865,11 +1865,14 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements ...@@ -1865,11 +1865,14 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
for (Long orderId : orderIdList) { for (Long orderId : orderIdList) {
orderService.updateStatus(orderId, null, orderStatus, null, inWarehouseState, shipmentState, auditType, auditResult, businessTime, "出货操作", null); orderService.updateStatus(orderId, null, orderStatus, null, inWarehouseState, shipmentState, auditType, auditResult, businessTime, "出货操作", null);
} }
if (transportType == 3) { if (Objects.nonNull(shipmentState)) {
if (transportType == 1) {
this.shipmentSeaOrderTimeLog(orderIdList, null, businessTime, shipmentState);
} else if (transportType == 3) {
if (shipmentState == BoxStatusEnum.CLEARANCE_WAIT_UNLOAD.getStatus()) { if (shipmentState == BoxStatusEnum.CLEARANCE_WAIT_UNLOAD.getStatus()) {
// 空运清关 // 空运清关
addOrderAirTimeLog(orderIdList, OrderAirTimeEnum.AIR_CLEARED, null, null, null, businessTime, null); addOrderAirTimeLog(orderIdList, OrderAirTimeEnum.AIR_CLEARED, null, null, null, businessTime, null);
} else if (shipmentState == BoxStatusEnum.ARRIVAL_WAIT_DISCHARGE.getStatus()) { } else if (shipmentState == BoxStatusEnum.ARRIVAL_WAIT_DISCHARGE.getStatus() || shipmentState == BoxStatusEnum.DISCHARGE_WAIT_CLEARANCE.getStatus()) {
// 空运到港 // 空运到港
addOrderAirTimeLog(orderIdList, OrderAirTimeEnum.AIR_ARRIVED, null, null, null, businessTime, null); addOrderAirTimeLog(orderIdList, OrderAirTimeEnum.AIR_ARRIVED, null, null, null, businessTime, null);
} else { } else {
...@@ -1877,6 +1880,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements ...@@ -1877,6 +1880,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
} }
} }
} }
}
/** /**
...@@ -1902,6 +1906,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements ...@@ -1902,6 +1906,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
for (Long orderId : orderIdList) { for (Long orderId : orderIdList) {
orderService.updateStatus(orderId, null, orderStatus, null, inWarehouseState, shipmentState, auditType, auditResult, businessTime, "出货操作", null); orderService.updateStatus(orderId, null, orderStatus, null, inWarehouseState, shipmentState, auditType, auditResult, businessTime, "出货操作", null);
} }
if (Objects.nonNull(shipmentState)) {
if (transportType == 1) { if (transportType == 1) {
this.shipmentSeaOrderTimeLog(orderIdList, estTime, businessTime, shipmentState); this.shipmentSeaOrderTimeLog(orderIdList, estTime, businessTime, shipmentState);
} else if (transportType == 3) { } else if (transportType == 3) {
...@@ -1916,6 +1921,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements ...@@ -1916,6 +1921,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
} }
} }
} }
}
/** /**
* 更新出货单下的订单状态 * 更新出货单下的订单状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment