This commit is contained in:
xuzhiheng
2025-07-03 13:50:22 +08:00
parent f2241efc68
commit c07ca22d29
5 changed files with 74 additions and 22 deletions

View File

@@ -358,6 +358,7 @@ public class TransportOrderUtil
//撤销订单,获取订单状态
TransportOrder.State state = order.getState();
LOG.info("车辆: {}: 正在中止订单: {} 订单状态: {}...", vehicle.getName(), order.getName(), order.getState());
if (state == TransportOrder.State.BEING_PROCESSED) {
//订单执行中,需要撤销下发给控制器的任务
ExecuteOperation.cancelOrder(vehicle.getName());