Commit c39fd344 by Ren Ping

fix:排班失败后在途距离和时间设为0

1 parent 50191560
......@@ -266,8 +266,8 @@ public class ExtractServiceImpl implements ExtractService {
orderInfo.setEngineerPhone(phone);
orderInfo.setPlanStartTime(dispatchOrder.getTimeBegin());
orderInfo.setPlanEndTime(dispatchOrder.getTimeEnd());
orderInfo.setArriveElapsed(dispatchOrder.getPathTime());
orderInfo.setArriveDistance(dispatchOrder.getPathDistance());
orderInfo.setArriveElapsed(null != dispatchOrder.getPathTime() ? dispatchOrder.getPathTime() : 0);
orderInfo.setArriveDistance(null != dispatchOrder.getPathDistance() ? dispatchOrder.getPathDistance() : 0);
if (!"CONFIRM".equals(dispatchOrder.getStatus())) {
orderInfo.setAppointmentStatus(cutOff ? "CONFIRM" : "PRE");
}
......
......@@ -3,7 +3,7 @@ server:
dispatch:
cron:
expr: 0 57 8-23 * * ?
expr: 0 50 8-23 * * ?
next-day-limit: 2
scheduler:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!