订单分配车辆更新wms系统对应任务执行车辆

This commit is contained in:
xuzhiheng 2025-06-30 18:21:49 +08:00
parent ec8e2cb292
commit d60a70483d
2 changed files with 10 additions and 2 deletions

View File

@ -23,4 +23,8 @@ public interface GuestUserCredentials {
* 内核开放端口
*/
Integer PORT = 1099;
/**
* WMS系统地址
*/
String WMS_URL = "http://192.168.124.114:2004";
}

View File

@ -356,8 +356,12 @@ public class TransportOrderUtil
// vehicle reports the remaining movements as finished.
updateTransportOrderState(order.getReference(), TransportOrder.State.WITHDRAWN);
//撤销订单
ExecuteOperation.cancelOrder(vehicle.getName());
//撤销订单,获取订单状态
TransportOrder.State state = order.getState();
if (state == TransportOrder.State.BEING_PROCESSED) {
//订单执行中需要撤销下发给控制器的任务
// ExecuteOperation.cancelOrder(vehicle.getName());
}
VehicleController vehicleController
= vehicleControllerPool.getVehicleController(vehicle.getName());