package com.stylefeng.guns.modular.system.util;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.stylefeng.guns.modular.system.util.httpClinet.HttpClientUtil;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
import sun.security.krb5.internal.PAData;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import java.util.HashMap;
|
import java.util.Map;
|
|
/**
|
* 交通部接口对接
|
*/
|
@Component
|
public class MinistryOfTransport {
|
|
private final String CompanyId = "4502YSGSGK3Y";//公司标识
|
|
private final String Source = "0";//消息来源标识
|
|
private final String url = "http://172.19.5.101:8085";
|
|
@Autowired
|
private HttpClientUtil httpClientUtil;
|
|
private SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
private SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
|
|
private SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmmss");
|
|
|
/**
|
* 上传企业基础信息
|
*/
|
public void baseInfoCompany(){
|
String IPCType = "baseInfoCompany";
|
String path = url + "/baseinfo/company";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("CompanyName", "广西云森科技有限公司");//公司名称
|
jsonObject.put("Identifier", "91450200MA5K99GK3Y");//统一社会信用代码
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("BusinessScope", "网络预约出租汽车客运");//经营范围
|
jsonObject.put("ContactAddress", "柳州市柳南区航银路8号万利大厦3楼303室");//通信地址
|
jsonObject.put("EconomicType", "150");//经营业户经济类型
|
jsonObject.put("RegCapital", "壹仟万圆整");//注册资本
|
jsonObject.put("LegalName", "翁克顺");//法人代表姓名
|
jsonObject.put("LegalID", "44052419650805207X");//法人代表身份证号
|
jsonObject.put("LegalPhone", "13907728585");//法人代表电话
|
jsonObject.put("LegalPhoto", "");//法人代表身份证扫描件文件编号
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车平台公司营运规模信息接口
|
*/
|
public void baseInfoCompanyStat(){
|
String IPCType = "baseInfoCompanyStat";
|
String path = url + "/baseinfo/companystat";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("VehicleNum", 0);//平台注册网约车辆数
|
jsonObject.put("DriverNum", 0);//平台注册驾驶员数
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车平台公司支付信息
|
*/
|
public void baseInfoCompanyPay(){
|
String IPCType = "baseInfoCompanyPay";
|
String path = url + "/baseinfo/companypay";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("PayName", "");//银行或者非银行支付机构名称
|
jsonObject.put("PayId", "");//非银行支付机构支付业务许可证编号
|
jsonObject.put("PayType", "");//支付业务类型
|
jsonObject.put("PayScope", "");//业务覆盖范围
|
jsonObject.put("PrepareBank", "");//备付金存管银行
|
jsonObject.put("CountDate", 1);//结算周期
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车平台公司服务机构
|
*/
|
public void baseInfoCompanyService(){
|
String IPCType = "baseInfoCompanyService";
|
String path = url + "/baseinfo/companyservice";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//行政区划代码
|
jsonObject.put("ServiceNae", "广西云森科技有限公司");//服务机构名称
|
jsonObject.put("ServiceNo", "");//服务机构代码
|
jsonObject.put("DetailAddress", "柳州市柳南区航银路8号万利大厦3楼303室");//服务机构地址
|
jsonObject.put("ResponsibleName", "");//服务机构负责人姓名
|
jsonObject.put("ResponsiblePhone", "");//负责人联系电话
|
jsonObject.put("ManagerName", "");//服务机构管理人姓名
|
jsonObject.put("ManagerPhone", "");//管理人联系电话
|
jsonObject.put("ContactPhone", "");//服务机构紧急联系电话
|
jsonObject.put("MailAddress", "");//行政文书送达邮寄地址
|
jsonObject.put("CreateDate", 20150918);//服务机构设立日期
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车平台公司经营许可
|
*/
|
public void baseInfoCompanyPermit(){
|
String IPCType = "baseInfoCompanyPermit";
|
String path = url + "/baseinfo/companypermit";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//许可地行政区划代码
|
jsonObject.put("Certificate", "450200005403");//网络预约出租车经营许可证号
|
jsonObject.put("OperationArea", "广西壮族自治州柳州市城区");//经营区域
|
jsonObject.put("OwnerName", "广西云森科技有限公司");//公司名称
|
jsonObject.put("Organization", "柳州市行政审批据");//发证机构名称
|
jsonObject.put("StartDate", 20180330);//有效期起YYYYMMDD
|
jsonObject.put("StopDate", 20220329);//有效期止YYYYMMDD
|
jsonObject.put("CertifyDate", 0);//初次发证日期YYYYMMDD
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车平台公司运价信息
|
*/
|
public void baseInfoCompanyFare(){
|
String IPCType = "baseInfoCompanyFare";
|
String path = url + "/baseinfo/companyfare";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//运价适用地行政区划代码
|
jsonObject.put("FareType", "");//运价类型编码(由网约车平台公司统一编码,应确保唯一性)
|
jsonObject.put("FareTypeNote", "");//运价类型说明
|
jsonObject.put("FareValidOn", 0);//运价有效期起YYYYMMDDhhmmss
|
jsonObject.put("FareValidOff", 0);//运价有效止YYYYMMDDhhmmss
|
jsonObject.put("StartFare", 0);//起步价(元)
|
jsonObject.put("StartMile", 0);//起步里程(km)
|
jsonObject.put("UnitPricePerMile", 0);//计程单价(按公里/元)
|
jsonObject.put("UnitPricePerMinute", 0);//计时单价(按分钟/元)
|
jsonObject.put("UpPrice", 0);//单程加价单价(元)
|
jsonObject.put("UpPriceStartMile", 0);//单程加价公里(km)
|
jsonObject.put("MorningPeakTimeOn", "");//营运早高峰时间起(HHmm 24小时)
|
jsonObject.put("MorningPeakTimeOff", "");//营运早高峰时间止(HHmm 24小时)
|
jsonObject.put("EveningPeakTimeOn", "");//营运晚高峰时间起(HHmm 24小时)
|
jsonObject.put("EveningPeakTimeOff", "");//营运晚高峰时间止(HHmm 24小时)
|
jsonObject.put("OtherPeakTimeOn", "");//其他营运高等时间起(HHmm 24小时)
|
jsonObject.put("OtherPeakTineOff", "");//其他营运高等时间止(HHmm 24小时)
|
jsonObject.put("PeakUnitPrice", 0);//高峰时间单程加价单价(元)
|
jsonObject.put("PeakPriceStartMile", 0);//高峰时间单程加价公里(km)
|
jsonObject.put("LowSpeedPriceMinute", 0);//低速计时加价(按分钟 元)
|
jsonObject.put("NightPricePerMile", 0);//夜间费(按公里 元)
|
jsonObject.put("NightPricePerMinute", 0);//夜间费(按分钟 元)
|
jsonObject.put("OtherPrice", 0);//其它加价金额(元)
|
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 车辆基本信息
|
*/
|
public void baseInfoVehicle(){
|
String IPCType = "baseInfoVehicle";
|
String path = url + "/baseinfo/vehicle";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//车辆所在城市行政区划代码
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("PlateColor", "");//车牌颜色
|
jsonObject.put("Seats", 5);//核定载客位
|
jsonObject.put("Brand", "");//车辆厂牌
|
jsonObject.put("Model", "");//车辆型号
|
jsonObject.put("VehicleType", "");//车辆类型(以机动车行驶证为准)
|
jsonObject.put("OwnerName", "");//车辆所有人(以机动车行驶证为准)
|
jsonObject.put("VehicleColor", "");//车身颜色
|
jsonObject.put("EngineId", "");//发送机号(以机动车行驶证为准)
|
jsonObject.put("VIN", "");//车辆VIN码(以机动车行驶证为准)
|
jsonObject.put("CertifyDateA", 0);//车辆注册日期(以机动车行驶证为准)
|
jsonObject.put("FuelType", "");//车辆燃料类型
|
jsonObject.put("EngineDisplace", "");//发送机排量(毫升)
|
jsonObject.put("PhotoId", "");//车辆照片文件编号
|
jsonObject.put("Certificate", "");//运输证字号
|
jsonObject.put("TransAgency", "");//车辆运输证发证机构
|
jsonObject.put("TransArea", "");//车辆经营区域
|
jsonObject.put("TransDateStart", 0);//车辆运输证有效期起YYYYMMDD
|
jsonObject.put("TransDateStop", 0);//车辆运输证有效期止YYYYMMDD
|
jsonObject.put("CertifyDateB", 0);//车辆初次登记日期
|
jsonObject.put("FixState", "");//车辆维修状态(0:未检修,1:已检修,2:未知)
|
jsonObject.put("NextFixDate", 0);//车辆下次年检时间
|
jsonObject.put("CheckState", "");//车辆年度审验状态
|
jsonObject.put("FeePrintId", "");//发票打印设备序列号
|
jsonObject.put("GPSBrand", "");//卫星定位装置品牌
|
jsonObject.put("GPSModel", "");//卫星定位装置型号
|
jsonObject.put("GPSIMEI", "");//卫星定位装置IMEI号
|
jsonObject.put("GPSInstallDate", 0);//卫星定位设备安装日期YYYYMMDD
|
jsonObject.put("RegisterDate", 0);//报备日期(车辆信息向服务所在地出租车行政主管部门报备日期YYYYMMDD)
|
jsonObject.put("CommercialType", 0);//服务类型(1:网络预约出租车,2:巡游出租汽车,3:私人小客车合乘)
|
jsonObject.put("FareType", "");//运价类型编码(与云间信息中一一对应)
|
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 车辆保险信息
|
*/
|
public void baseInfoVehicleInsurance(){
|
String IPCType = "baseInfoVehicleInsurance";
|
String path = url + "/baseinfo/vehicleinsurance";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("InsurCom", "");//保险公司名称
|
jsonObject.put("InsurNum", "");//保险号
|
jsonObject.put("InsurType", "");//保险类型
|
jsonObject.put("InsurCount", 0);//保险金额(元)
|
jsonObject.put("InsurEff", 0);//保险生效时间YYYYMMDD
|
jsonObject.put("InsurExp", 0);//保险到期时间YYYYMMDD
|
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车车辆里程信息
|
*/
|
public void baseInfoVehicleTotalMile(){
|
String IPCType = "baseInfoVehicleTotalMile";
|
String path = url + "/baseinfo/vehicletotalmile";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("TotalMile", 0);//行驶总里程(km)
|
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 驾驶员基本信息
|
*/
|
public void baseInfoDriver(){
|
String IPCType = "baseInfoDriver";
|
String path = url + "/baseinfo/driver";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("DriverName", "");//机动车驾驶员姓名
|
jsonObject.put("DriverPhone", "");//驾驶员手机号
|
jsonObject.put("DriverGender", "");//驾驶员性别
|
jsonObject.put("DriverBirthday", 0);//出生日期YYYYMMDD
|
jsonObject.put("DriverNationality", "");//国籍
|
jsonObject.put("DriverNation", "");//驾驶员民族
|
jsonObject.put("DriverMaritalStatus", "");//驾驶员婚姻状况(未婚,已婚,离异)
|
jsonObject.put("DriverLanguageLevel", "");//驾驶员外语能力
|
jsonObject.put("DriverEducation", "");//驾驶员学历
|
jsonObject.put("DriverCensus", "");//户口登记机关名称
|
jsonObject.put("DriverAddress", "");//户口住址或长住地址
|
jsonObject.put("DriverContactAddress", "");//驾驶员通信地址
|
jsonObject.put("PhotoId", "");//驾驶员照片文件编号
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("LicensePhotoId", "");//机动车驾驶证扫描件文件编号
|
jsonObject.put("DriverType", "");//准驾车型
|
jsonObject.put("GetDriverLicenseDate", 0);//初次领取驾驶证日期YYYYMMDD
|
jsonObject.put("DriverLicenseOn", 0);//驾驶证有效期限起YYYYMMDD
|
jsonObject.put("DriverLicenseOff", 0);//驾驶证有效期限止YYYYMMDD
|
jsonObject.put("TaxiDriver", 0);//是否巡游出租汽车驾驶员(1:是,2:否)
|
jsonObject.put("CertificateNo", "");//网络预约出租汽车驾驶员资格证号
|
jsonObject.put("NetworkCarIssueOrganization", "");//网络预约出租汽车驾驶员证发证机构
|
jsonObject.put("NetworkCarIssueDate", 0);//资格证发证日期YYYYMMDD
|
jsonObject.put("GetNetworkCarProofDate", 0);//初次领取资格证日期YYYYMMDD
|
jsonObject.put("NetworkCarProofOn", 0);//资格证有效起始日期YYYYMMDD
|
jsonObject.put("NetworkCarProofOff", 0);//资格证有截止日期YYYYMMDD
|
jsonObject.put("RegisterDate", 0);//报备日期(驾驶员信息向服务所在地出租车行政主管部门报备日期)
|
jsonObject.put("FullTimeDriver", 0);//是否专职驾驶员(1:是,0:否)
|
jsonObject.put("InDriverBlacklist", 0);//是否在驾驶员黑名单内(1:是,0:否)
|
jsonObject.put("CommercialType", 0);//服务类型(1:网络预约出租汽车,2:巡游出租汽车,3:私人小客车合乘)
|
jsonObject.put("ContractCompany", "");//驾驶员合同签署公司
|
jsonObject.put("ContractOn", 0);//合同有效期起YYYYMMDD
|
jsonObject.put("ContractOff", 0);//合同有效期止YYYYMMDD
|
jsonObject.put("EmergencyContact", "");//紧急情况联系人
|
jsonObject.put("EmergencyContactPhone", "");//紧急情况联系人电话
|
jsonObject.put("EmergencyContactAddress", "");//紧急情况联系人通信地址
|
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 网约车驾驶员培训信息
|
*/
|
public void baseInfoDriverEducate(){
|
String IPCType = "baseInfoDriverEducate";
|
String path = url + "/baseinfo/drivereducate";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("CourseName", "");//驾驶员培训课程名称
|
jsonObject.put("CourseDate", 0);//培训课程日期YYYYMMDD
|
jsonObject.put("StartTime", "");//培训开始时间
|
jsonObject.put("StopTime", "");//培训结束时间
|
jsonObject.put("Duration", 0);//培训时长
|
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 驾驶员移动终端信息
|
*/
|
public void baseInfoDriverApp(){
|
String IPCType = "baseInfoDriverApp";
|
String path = url + "/baseinfo/driverapp";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("DriverPhone", "");//驾驶员手机号
|
jsonObject.put("NetType", 0);//手机运营商(1:中国联通,2:中国移动,3:中国电信,4:其他)
|
jsonObject.put("AppVersion", "");//使用APP版本号
|
jsonObject.put("MapType", 0);//使用地图类型(1:百度地图,2:高德地图,3:其他)
|
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 驾驶员统计信息
|
*/
|
public void baseInfoDriverStat(){
|
String IPCType = "baseInfoDriverStat";
|
String path = url + "/baseinfo/driverstat";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 450204);//注册地行政区划代码
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("Cycle", 0);//统计周期(统计周期按月,内容填写统计月份YYYYMM)
|
jsonObject.put("OrderCount", 0);//完成订单次数
|
jsonObject.put("TrafficViolationCount", 0);//交通违章次数
|
jsonObject.put("ComplainedCount", 0);//被投诉次数
|
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 乘客基本信息
|
*/
|
public void baseInfoPassenger(){
|
String IPCType = "baseInfoPassenger";
|
String path = url + "/baseinfo/passenger";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("RegisterDate", 0);//注册日期YYYYMMDD
|
jsonObject.put("PassengerPhone", "");//乘客手机号
|
jsonObject.put("PassengerName", "");//乘客称谓
|
jsonObject.put("PassengerGender", "");//乘客性别
|
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", Long.valueOf(sdf.format(new Date())));
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 订单发起接口
|
*/
|
public void orderCreate(){
|
String IPCType = "orderCreate";
|
String path = url + "/order/create";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//发起第行政区划代码
|
jsonObject.put("OrderId", "");//订单编号
|
jsonObject.put("DepartTime", 0);//预计用车时间YYYYMMDDhhmmss
|
jsonObject.put("OrderTime", 0);//订单发起时间YYYYMMDDhhmmss
|
jsonObject.put("PassengerNote", "");//乘客备注
|
jsonObject.put("Departure", "");//预计出发地点详细地址
|
jsonObject.put("DepLongitude", 0);//预计出发地点经度
|
jsonObject.put("DepLatitude", 0);//预计出发地点纬度
|
jsonObject.put("Destination", "");//预计目的地
|
jsonObject.put("DestLongitude", 0);//预计目的地经度
|
jsonObject.put("DestLatitude", 0);//预计目的地纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("FareType", "");//运价类型编码
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 订单成功接口
|
*/
|
public void orderMatch(){
|
String IPCType = "orderMatch";
|
String path = url + "/order/match";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//发起第行政区划代码
|
jsonObject.put("OrderId", "");//订单编号
|
jsonObject.put("Longitude", 0);//车辆经度
|
jsonObject.put("Latitude", 0);//车辆纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("LicenseId", "");//机动车驾驶证编号
|
jsonObject.put("DriverPhone", "");//驾驶员手机号
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("DistributeTime", 0);//派单成功时间YYYYMMDDhhmmss
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 订单撤销接口
|
*/
|
public void orderCancel(){
|
String IPCType = "orderCancel";
|
String path = url + "/order/cancel";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//上车地点行政区划代码
|
jsonObject.put("OrderId", "");//订单编号
|
jsonObject.put("OrderTime", 0);//订单时间YYYYMMDDhhmmss
|
jsonObject.put("CancelTime", 0);//订单撤销时间YYYYMMDDhhmmss
|
jsonObject.put("Operator", "");//撤销发起方(1:乘客,2:驾驶员,3:平台公司)
|
jsonObject.put("CancelTypeCode", "");//机动车驾驶证编号
|
jsonObject.put("DriverPhone", "");//撤销类型代码(1:乘客提前撤销,2:驾驶员提前撤销,3:平台公司撤销,4:乘客违约撤销,5:驾驶员违约撤销)
|
jsonObject.put("CancelReason", "");//撤销或违约原因
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 车辆经营上线接口
|
*/
|
public void operateLogin(){
|
String IPCType = "operateLogin";
|
String path = url + "/operate/login";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("LoginTime", 0);//车辆经营上线时间YYYYMMDDhhmmss
|
jsonObject.put("Longitude", 0);//上线经度
|
jsonObject.put("Latitude", 0);//上线纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 车辆经营下线接口
|
*/
|
public void operateLogout(){
|
String IPCType = "operateLogout";
|
String path = url + "/operate/logout";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("LoginTime", 0);//车辆经营下线时间YYYYMMDDhhmmss
|
jsonObject.put("Longitude", 0);//下线经度
|
jsonObject.put("Latitude", 0);//下线纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 经营出发接口
|
*/
|
public void operateDepart(){
|
String IPCType = "operateDepart";
|
String path = url + "/operate/depart";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("OrderId", "");//订单号
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("FareType", "");//运价类型编码
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("DepLongitude", 0);//车辆出发经度
|
jsonObject.put("DepLatitude", 0);//车辆出发纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("DepTime", 0);//上车时间YYYYMMDDhhmmss
|
jsonObject.put("WaitMile", 0);//空驶里程(km)
|
jsonObject.put("WaitTime", 0);//等待时间(秒)
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 经营到达接口
|
*/
|
public void operateArrive(){
|
String IPCType = "operateArrive";
|
String path = url + "/operate/arrive";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("OrderId", "");//订单号
|
jsonObject.put("DestLongitude", 0);//车辆到达经度
|
jsonObject.put("DestLatitude", 0);//车辆到达纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("DestTime", 0);//下车时间YYYYMMDDhhmmss
|
jsonObject.put("DriveMile", 0);//载客里程(km)
|
jsonObject.put("DriveTime", 0);//载客时间(秒)
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 经营支付接口
|
*/
|
public void operatePay(){
|
String IPCType = "operatePay";
|
String path = url + "/operate/pay";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("OrderId", "");//订单号
|
jsonObject.put("OnArea", 0);//上车位置行政区划代码
|
jsonObject.put("DriverName", "");//机动车驾驶员
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("FareType", "");//运价类型编码(由网约车公司定义,与运价信息接口保持一街)
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("BookDepTime", 0);//预计上车时间YYYYMMDDhhmmss
|
jsonObject.put("WaitTime", 0);//等待时间(秒)
|
jsonObject.put("DepLongitude", 0);//车辆出发经度
|
jsonObject.put("DepLatitude", 0);//车辆出发纬度
|
jsonObject.put("DepArea", "");//上车点
|
jsonObject.put("DepTime", 0);//上车时间YYYYMMDDhhmmss
|
jsonObject.put("DestLongitude", 0);//车辆到达经度
|
jsonObject.put("DestLatitude", 0);//车辆到达纬度
|
jsonObject.put("DestArea", "");//下车地点
|
jsonObject.put("DestTime", 0);//下车时间YYYYMMDDhhmmss
|
jsonObject.put("BookModel", "");//预定车型
|
jsonObject.put("DriveMile", 0);//载客里程(km)
|
jsonObject.put("DriveTime", 0);//载客时间(秒)
|
jsonObject.put("WaitMile", 0);//空驶里程(km)
|
jsonObject.put("FactPrice", 0);//实收金额(元)
|
jsonObject.put("Price", 0);//应收金额(元)
|
jsonObject.put("CashPrice", 0);//现金支付金额(元)
|
jsonObject.put("LineName", "");//电子支付机构
|
jsonObject.put("LinePrice", 0);//电子支付金额(元)
|
jsonObject.put("PosName", "");//POS机支付机构
|
jsonObject.put("PosPrice", 0);//POS机支付金额(元)
|
jsonObject.put("BenfitPrice", 0);//优惠金额(元)
|
jsonObject.put("BookTip", 0);//预约服务费(元)
|
jsonObject.put("PassengerTip", 0);//附加费(元)
|
jsonObject.put("PeakUpPrice", 0);//高峰时段时间加价金额(元)
|
jsonObject.put("NightUpPrice", 0);//夜间时段里程加价金额(元)
|
jsonObject.put("FarUpPrice", 0);//远途加价金额(元)
|
jsonObject.put("OtherUpPrice", 0);//其他加价金额(元)
|
jsonObject.put("PayState", "");//结算状态(0:未结算,1:已结算,2:未知)
|
jsonObject.put("PayTime", 0);//乘客结算时间YYYYMMDDhhmmss
|
jsonObject.put("OrderMatchTime", 0);//订单完成时间YYYYMMDDhhmmss
|
jsonObject.put("InvoiceStatus", "");//发票状态(0:未开票,1:已开票,2:未知)
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 驾驶员定位信息
|
*/
|
public void positionDriver(){
|
String IPCType = "positionDriver";
|
String path = url + "/position/driver";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("DriverRegionCode", 0);//行政区划代码
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("PositionTime", 0);//定位时间(时间戳)
|
jsonObject.put("Longitude", 0);//经度
|
jsonObject.put("Latitude", 0);//纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("Direction", 0);//方向角
|
jsonObject.put("Elevation", 0);//海拔高度
|
jsonObject.put("Speed", 0);//瞬时速度(km/h)
|
jsonObject.put("BizStatus", 0);//营运状态(1:载客,2:接单,3:空驶,4:停运)
|
jsonObject.put("OrderId", "");//订单编号
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 车辆定位信息
|
*/
|
public void positionVehicle(){
|
String IPCType = "positionVehicle";
|
String path = url + "/position/vehicle";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("VehicleRegionCode", 0);//行政区划代码
|
jsonObject.put("PositionTime", 0);//定位时间(时间戳)
|
jsonObject.put("Longitude", 0);//经度
|
jsonObject.put("Latitude", 0);//纬度
|
jsonObject.put("Speed", 0);//瞬时速度(km/h)
|
jsonObject.put("Direction", 0);//方向角
|
jsonObject.put("Elevation", 0);//海拔高度
|
jsonObject.put("Mileage", 0);//行驶里程(KM)
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("WarnStatus", 0);//预警状态
|
jsonObject.put("VehStatus", 0);//车辆状态
|
jsonObject.put("BizStatus", 0);//营运状态(1:载客,2:接单,3:空驶,4:停运)
|
jsonObject.put("OrderId", "");//订单编号(非营运状态下填"0")
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 乘客评价信息
|
*/
|
public void ratedPassenger(){
|
String IPCType = "ratedPassenger";
|
String path = url + "/rated/passenger";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("OrderId", "");//订单号
|
jsonObject.put("EvaluateTime", 0);//评价时间YYYYMMDDhhmms
|
jsonObject.put("ServiceScore", 0);//服务满意度(五分制)
|
jsonObject.put("DriverScore", 0);//驾驶员满意度(五分制)
|
jsonObject.put("VehicleScore", 0);//车辆满意度(五分制)
|
jsonObject.put("Detail", "");//评价内容
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 乘客投诉信息
|
*/
|
public void ratedPassengerComplaint(){
|
String IPCType = "ratedPassengerComplaint";
|
String path = url + "/rated/passengercomplaint";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("OrderId", "");//订单号
|
jsonObject.put("ComplaintTime", 0);//投诉时间YYYYMMDDhhmms
|
jsonObject.put("Detail", "");//投诉内容
|
jsonObject.put("Result", "");//处理结果
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
/**
|
* 驾驶员处罚信息
|
*/
|
public void ratedDriverPunish(){
|
String IPCType = "ratedDriverPunish";
|
String path = url + "/rated/driverpunish";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("LicenseId", "");//机动车驾驶证编号
|
jsonObject.put("PunishTime", 0);//处罚时间YYYYMMDDhhmms
|
jsonObject.put("PunishReason", "");//处罚原因
|
jsonObject.put("PunishReault", "");//处罚结果
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 驾驶员信誉信息
|
*/
|
public void ratedDriver(){
|
String IPCType = "ratedDriver";
|
String path = url + "/rated/driver";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("LicenseId", "");//机动车驾驶证编号
|
jsonObject.put("Level", 0);//服务质量信誉等级(五分制)
|
jsonObject.put("TestDate", 0);//服务质量信誉考核日期YYYYMMDD
|
jsonObject.put("TestDepartment", "");//服务质量信誉考核机构
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 私人小客车合乘信息服务平台基本信息
|
*/
|
public void shareCompany(){
|
String IPCType = "shareCompany";
|
String path = url + "/share/company";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("CompanyName", "");//公司名称
|
jsonObject.put("Identifier", "");//统一社会信用代码
|
jsonObject.put("Address", 0);//注册地行政区划代码
|
jsonObject.put("ContactAddress", "");//通信地址
|
jsonObject.put("EconomicType", "");//经营业户经济类型
|
jsonObject.put("LegalName", "");//法人代表姓名(按照营业执照填写)
|
jsonObject.put("LegalPhone", "");//法人代表电话
|
jsonObject.put("State", 0);//状态(0:有效,1:失效)
|
jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
|
jsonObject.put("UpdateTime", 1);//更新时间YYYYMMDDhhmmss
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
/**
|
* 私人小客车合乘驾驶员行程发布接口
|
*/
|
public void shareRoute(){
|
String IPCType = "shareRoute";
|
String path = url + "/share/route";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//行政区划代码
|
jsonObject.put("RouteId", "");//驾驶员发起行程编号
|
jsonObject.put("DriverName", "");//驾驶员姓名
|
jsonObject.put("DriverPhone", "");//驾驶员手机号
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("Departure", "");//行程出发地点
|
jsonObject.put("DepLongitude", 0);//车辆出发经度
|
jsonObject.put("DepLatitude", 0);//车辆出发纬度
|
jsonObject.put("Destination", "");//行程到达地点
|
jsonObject.put("DestLongitude", 0);//到达地经度
|
jsonObject.put("DestLatitude", 0);//到达纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("RouteCreateTime", 0);//行程发布时间YYYYMMDDhhmmss
|
jsonObject.put("RouteMile", 0);//行程预计里程(km)
|
jsonObject.put("RouteNote", "");//行程备注
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 此人小客车合乘订单接口
|
*/
|
public void shareOrder(){
|
String IPCType = "shareOrder";
|
String path = url + "/share/order";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//行政区划代码
|
jsonObject.put("RouteId", "");//驾驶员发起行程编号
|
jsonObject.put("OrderId", "");//乘客合乘订单号
|
jsonObject.put("BookDepartTime", 0);//预计上车时间YYYYMMDDhhmmss
|
jsonObject.put("Departure", "");//预计上车地点
|
jsonObject.put("DepLongitude", 0);//预计上车地点经度
|
jsonObject.put("DepLatitude", 0);//预计上车地点纬度
|
jsonObject.put("Destination", "");//预计下车地点
|
jsonObject.put("DestLongitude", 0);//预计下车地点经度
|
jsonObject.put("DestLatitude", 0);//预计下车地点纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("OrderEnsureTime", 0);//订单确认时间YYYYMMDDhhmmss
|
jsonObject.put("PassengerNum", 0);//乘客人数
|
jsonObject.put("PassengerNote", "");//乘客备注
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
|
|
/**
|
* 私人小客车合乘订单支付接口
|
*/
|
public void sharePay(){
|
String IPCType = "sharePay";
|
String path = url + "/share/pay";
|
Map<String, Object> data = new HashMap<>();
|
JSONObject jsonObject = new JSONObject();
|
jsonObject.put("CompanyId", CompanyId);
|
jsonObject.put("Address", 0);//行政区划代码
|
jsonObject.put("RouteId", "");//驾驶员发起行程编号
|
jsonObject.put("OrderId", "");//乘客合乘订单号
|
jsonObject.put("DriverPhone", "");//驾驶员手机号
|
jsonObject.put("LicenseId", "");//机动车驾驶证号
|
jsonObject.put("VehicleNo", "");//车辆号牌
|
jsonObject.put("FareType", "");//运价类型编码
|
jsonObject.put("BookDepartTime", 0);//预计上车时间YYYYMMDDhhmmss
|
jsonObject.put("DepartTime", 0);//实际上车时间YYYYMMDDhhmmss
|
jsonObject.put("Departure", "");//上车地点
|
jsonObject.put("DepLongitude", 0);//上车地点经度
|
jsonObject.put("DepLatitude", 0);//上车地点纬度
|
jsonObject.put("DestTime", 0);//下车时间YYYYMMDDhhmmss
|
jsonObject.put("Destination", "");//下车地点
|
jsonObject.put("DestLongitude", 0);//下车地点经度
|
jsonObject.put("DestLatitude", "");//下车地点纬度
|
jsonObject.put("Encrypt", 0);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
|
jsonObject.put("DriveMile", 0);//载客里程(km)
|
jsonObject.put("DriveTime", 0);//载客时间(秒)
|
jsonObject.put("FactPrice", 0);//实收金额(元)
|
jsonObject.put("Price", 0);//应收金额(元)
|
jsonObject.put("CashPrice", 0);//现金支付金额(元)
|
jsonObject.put("LineName", "");//电子支付机构
|
jsonObject.put("LinePrice", 0);//电子支付金额(元)
|
jsonObject.put("BenfitPrice", 0);//优惠金额(元)
|
jsonObject.put("ShareFuelFee", 0);//燃料成本分摊金额(元)
|
jsonObject.put("ShareHighwayToll", 0);//路桥通行分摊金额(元)
|
jsonObject.put("PassengerTip", 0);//附加费(元)
|
jsonObject.put("ShareOther", 0);//其他费用分摊金额(元)
|
jsonObject.put("PayState", 0);//结算状态(0:未结算,1:已结算,2:未知)
|
jsonObject.put("PassengerNum", 0);//乘客人数(元)
|
jsonObject.put("PayTime", 0);//乘客结算时间YYYYMMDDhhmmss
|
jsonObject.put("OrderMatchTime", 0);//订单完成时间YYYYMMDDhhmmss
|
|
data.put("CompanyId", CompanyId);
|
data.put("Source", Source);
|
data.put("IPCType", IPCType);
|
data.put("baseInfoCompany", jsonObject);
|
String s = null;
|
try {
|
s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
System.err.println(s);
|
}
|
}
|