添加字段
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user