Commit c457de4f by duanhq

设备信息激活验证 by duanht 2019/4/19

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19915 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 1fe51e0b
......@@ -28,8 +28,15 @@ public class WorkOrderNode {
/** 设备信息 */
private List<DeviceInfo> deviceInfoList = new ArrayList();
/** 备注 */
private String remark;
/** 车主姓名 */
private String name;
/** 车架号 */
private String standNo;
public String getRemark() {
return remark;
}
......@@ -77,4 +84,20 @@ public class WorkOrderNode {
public void setDeviceInfoList(List<DeviceInfo> deviceInfoList) {
this.deviceInfoList = deviceInfoList;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getStandNo() {
return standNo;
}
public void setStandNo(String standNo) {
this.standNo = standNo;
}
}
......@@ -1553,17 +1553,19 @@ public class OrderServiceImpl implements IOrderService {
private String postWorkOrderNodeInfo(WorkOrderNode workOrderNode,String channel) {
HttpUtils httpUtils = new HttpUtils();
TreeMap<String, String> map = new TreeMap<String, String>();
String url;
Object json = JSONObject.toJSON( workOrderNode);
String result = "";
map.put("paramJson", json.toString());
try {
if("edun".equals(channel)){
url = PropertiesUtil.getProperty("edun.access.platform.url") + "deviceHandler/locationCheck?";
url = PropertiesUtil.getProperty("edun.access.platform.url") + "api/workOrder/activeOrder";
} else {
//默认推送给E盾
url = PropertiesUtil.getProperty("edun.access.platform.url") + "deviceHandler/locationCheck?";
url = PropertiesUtil.getProperty("edun.access.platform.url") + "api/workOrder/activeOrder";
}
result = httpUtils.postJson(url, json.toString());
result = httpUtils.post(url, map,100, "utf-8");
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
......
......@@ -105,7 +105,11 @@ public class StandardOrderServiceImpl implements StandardOrderService {
//所有子单的备注合并到一起
remark.append(sysOrder.getRemark());
}
workOrderNode.setInstallLocionPicture(installLocionPicture);
workOrderNode.setDeviceInfoList(deviceInfoList);
workOrderNode.setRemark(remark.toString());
workOrderNode.setName(sysOrders.get(0).getCarOwner());
workOrderNode.setStandNo(sysOrders.get(0).getVinNo());
}
return workOrderNode;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!