Commit bdfd2819 authored by shiyu's avatar shiyu

定时刷新轨迹作业修改,更新物流状态

parent 9e8b20cc
......@@ -83,6 +83,7 @@ public class RefreshLogisticsJob {
Date startTime = Date.from(startInstant);
distributionOrderRequestDto.setStartDeliveryTime(startTime);
distributionOrderRequestDto.setEndDeliveryTime(now);
distributionOrderRequestDto.setState(DistributionEnum.DistributionOrderStateEnum.PRE_SIGNED.getCode());
distributionOrderRequestDto.setNotFilterLogisticsState(LogisticsStateEnum.StateEnum.SIGNED.getCode());
int page = 0;
while (hasNextPage) {
......@@ -103,7 +104,7 @@ public class RefreshLogisticsJob {
}
LogisticsInfo logisticsInfo = (LogisticsInfo) result.getData();
int logisticsState = Integer.parseInt(logisticsInfo.getState());
if (logisticsState != distributionOrder.getLogisticsState().intValue()) {
if (distributionOrder.getLogisticsState() == null || logisticsState != distributionOrder.getLogisticsState().intValue()) {
DistributionOrder updateDto = new DistributionOrder();
updateDto.setDistributionOrderId(orderId);
updateDto.setLogisticsState(logisticsState);
......
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