GPS根据车架号查询定位校验
This commit is contained in:
parent
545d1279cc
commit
b501444c46
@ -2,11 +2,8 @@ package com.tenwa.gps;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
@ -172,36 +169,41 @@ public class GpsController {
|
||||
* 天易--根据车架号查询工单
|
||||
* @throws Exception
|
||||
*/
|
||||
public boolean queryOrderToVin(Transaction Sqlca) throws Exception{
|
||||
String url = GPSConfigure.get("TYQueryOrderToVin");
|
||||
|
||||
System.err.println("***************天易--根据车架号查询工单URL*****************");
|
||||
System.err.println(url);
|
||||
System.err.println("***************天易--根据车架号查询工单URL*****************");
|
||||
|
||||
Map<String,String> params = GpsCommon.tyEditQueryToVinParameter(vin);
|
||||
System.err.println("***************天易--根据车架号查询工单上传参数*****************");
|
||||
System.err.println(params);
|
||||
System.err.println("***************天易--根据车架号查询工单上传参数*****************");
|
||||
|
||||
Map<String,String> resultMap = HttpClientSUtil.doGet(url, params, null);
|
||||
String data = resultMap.get("data");
|
||||
System.err.println("***************天易--根据车架号查询工单返回参数*****************");
|
||||
System.err.println(data);
|
||||
System.err.println("***************天易--根据车架号查询工单返回参数*****************");
|
||||
|
||||
//日志参数
|
||||
Map<String,String> logMap = new HashMap<String,String>();
|
||||
logMap.put("URL",url);
|
||||
logMap.put("UPLOAD_PARAMETER",params.toString());
|
||||
logMap.put("RETURN_PARAMETER",data);
|
||||
logMap.put("CALL_USERID",userId);
|
||||
logMap.put("FLOWUNID",flowUnid);
|
||||
logMap.put("PROJECT_ID",projectId);
|
||||
logMap.put("CALL_PURPOSE","天易--根据车架号查询工单");
|
||||
logMap.put("CALL_STATUS",resultMap.get("status"));
|
||||
GpsCommon.callRecord(logMap, Sqlca);
|
||||
return GpsCommon.tyQueryToVinDataPersistence(data,Sqlca);
|
||||
public boolean queryOrderToVin(Transaction Sqlca){
|
||||
try{
|
||||
String url = GPSConfigure.get("TYQueryOrderToVin");
|
||||
|
||||
System.err.println("***************天易--根据车架号查询工单URL*****************");
|
||||
System.err.println(url);
|
||||
System.err.println("***************天易--根据车架号查询工单URL*****************");
|
||||
|
||||
Map<String,String> params = GpsCommon.tyEditQueryToVinParameter(vin);
|
||||
System.err.println("***************天易--根据车架号查询工单上传参数*****************");
|
||||
System.err.println(params);
|
||||
System.err.println("***************天易--根据车架号查询工单上传参数*****************");
|
||||
|
||||
Map<String,String> resultMap = HttpClientSUtil.doGet(url, params, null);
|
||||
String data = resultMap.get("data");
|
||||
System.err.println("***************天易--根据车架号查询工单返回参数*****************");
|
||||
System.err.println(data);
|
||||
System.err.println("***************天易--根据车架号查询工单返回参数*****************");
|
||||
|
||||
//日志参数
|
||||
Map<String,String> logMap = new HashMap<String,String>();
|
||||
logMap.put("URL",url);
|
||||
logMap.put("UPLOAD_PARAMETER",params.toString());
|
||||
logMap.put("RETURN_PARAMETER",data);
|
||||
logMap.put("CALL_USERID",userId);
|
||||
logMap.put("FLOWUNID",flowUnid);
|
||||
logMap.put("PROJECT_ID",projectId);
|
||||
logMap.put("CALL_PURPOSE","天易--根据车架号查询工单");
|
||||
logMap.put("CALL_STATUS",resultMap.get("status"));
|
||||
GpsCommon.callRecord(logMap, Sqlca);
|
||||
return GpsCommon.tyQueryToVinDataPersistence(data,Sqlca);
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user