添加字段

This commit is contained in:
xuzhiheng 2025-06-26 11:55:07 +08:00
parent bb878f6dc8
commit 64adb38fed
3 changed files with 9 additions and 2 deletions

View File

@ -471,7 +471,7 @@ public class LoopbackCommunicationAdapter
ACTION_STATUS = true; ACTION_STATUS = true;
//下发动作 //下发动作
ExecuteAction.sendCmd(getProcessModel().getName(), getProcessModel().getPosition(), command.getOperation(), getSerialNum()); ExecuteAction.sendCmd(command.getTransportOrder().getName(), getProcessModel().getName(), getProcessModel().getPosition(), command.getOperation(), getSerialNum());
//进入阻塞 //进入阻塞
while (ACTION_STATUS) { while (ACTION_STATUS) {
@ -871,6 +871,7 @@ public class LoopbackCommunicationAdapter
*/ */
private void handleActionStatus(AgvActionStatus agvActionStatus) { private void handleActionStatus(AgvActionStatus agvActionStatus) {
if (agvActionStatus.getStatus()) { if (agvActionStatus.getStatus()) {
// System.out.println("handleActionStatus: ======");
ACTION_STATUS = false; ACTION_STATUS = false;
} }
} }

View File

@ -8,6 +8,10 @@ import lombok.Data;
@Data @Data
public class RequestAction { public class RequestAction {
/**
* 订单名称
*/
private String order_name;
/** /**
* 动作 * 动作
*/ */

View File

@ -11,12 +11,13 @@ public class ExecuteAction extends BaseService {
/** /**
* 下发动作到平台 * 下发动作到平台
* @param orderName 车辆名称
* @param vehicleName 车辆名称 * @param vehicleName 车辆名称
* @param point 当前位置 * @param point 当前位置
* @param action 动作 * @param action 动作
* @param serialNum 序列号 * @param serialNum 序列号
*/ */
public static void sendCmd(String vehicleName, String point, String action, Integer serialNum) { public static void sendCmd(String orderName, String vehicleName, String point, String action, Integer serialNum) {
String url = getUrl(vehicleName); String url = getUrl(vehicleName);
@ -26,6 +27,7 @@ public class ExecuteAction extends BaseService {
String time = now.format(formatter); String time = now.format(formatter);
RequestAction requestAction = new RequestAction(); RequestAction requestAction = new RequestAction();
requestAction.setOrder_name(orderName);
requestAction.setAction(action); requestAction.setAction(action);
requestAction.setPoint(point); requestAction.setPoint(point);