添加字段
This commit is contained in:
parent
bb878f6dc8
commit
64adb38fed
@ -471,7 +471,7 @@ public class LoopbackCommunicationAdapter
|
||||
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) {
|
||||
@ -871,6 +871,7 @@ public class LoopbackCommunicationAdapter
|
||||
*/
|
||||
private void handleActionStatus(AgvActionStatus agvActionStatus) {
|
||||
if (agvActionStatus.getStatus()) {
|
||||
// System.out.println("handleActionStatus: ======");
|
||||
ACTION_STATUS = false;
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,10 @@ import lombok.Data;
|
||||
@Data
|
||||
public class RequestAction {
|
||||
|
||||
/**
|
||||
* 订单名称
|
||||
*/
|
||||
private String order_name;
|
||||
/**
|
||||
* 动作
|
||||
*/
|
||||
|
@ -11,12 +11,13 @@ public class ExecuteAction extends BaseService {
|
||||
|
||||
/**
|
||||
* 下发动作到平台
|
||||
* @param orderName 车辆名称
|
||||
* @param vehicleName 车辆名称
|
||||
* @param point 当前位置
|
||||
* @param action 动作
|
||||
* @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);
|
||||
|
||||
@ -26,6 +27,7 @@ public class ExecuteAction extends BaseService {
|
||||
String time = now.format(formatter);
|
||||
|
||||
RequestAction requestAction = new RequestAction();
|
||||
requestAction.setOrder_name(orderName);
|
||||
requestAction.setAction(action);
|
||||
requestAction.setPoint(point);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user