zhibing.pu
2024-06-28 85d8efdb96a9b4900dbceef524a29690e13b7800
Merge remote-tracking branch 'origin/master'
8个文件已修改
54个文件已添加
11179 ■■■■■ 已修改文件
.idea/jarRepositories.xml 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DriverZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpResult.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DriverZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java 167 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ManagementZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ManagementZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushURL.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/.mvn/wrapper/MavenWrapperDownloader.java 118 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/.mvn/wrapper/maven-wrapper.jar 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/.mvn/wrapper/maven-wrapper.properties 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/mvnw 310 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/mvnw.cmd 182 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/pom.xml 86 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/MinistryoftransportApplication.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/FTPController.java 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/HttpTestController.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/MinistryOfTransportController.java 528 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompany.java 197 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyFare.java 353 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyPay.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyPermit.java 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyService.java 197 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyStat.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriver.java 535 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverApp.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverEducate.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverStat.java 119 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoPassenger.java 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicle.java 471 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicleInsurance.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicleTotalMile.java 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateArrive.java 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateDepart.java 145 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateLogin.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateLogout.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperatePay.java 522 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderCancel.java 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderCreate.java 184 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderMatch.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/PositionDriver.java 169 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/PositionVehicle.java 195 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedDriver.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedDriverPunish.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedPassenger.java 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedPassengerComplaint.java 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareCompany.java 145 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareOrder.java 197 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/SharePay.java 444 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareRoute.java 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/server/IMinistryOfTransportService.java 259 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/server/impl/MinistryOfTransportServiceImpl.java 390 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/ALiSendSms.java 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/FTPUtil.java 381 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/MinistryOfTransport.java 1456 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/TaskUtil.java 112 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/httpClinet/HttpClientUtil.java 265 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/httpClinet/HttpResult.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MinistryOfTransport/src/main/resources/application.properties 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/ALiApiUtil.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpClientUtil.java 296 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpResult.java 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java 224 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.idea/jarRepositories.xml
New file
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="RemoteRepositoriesConfiguration">
    <remote-repository>
      <option name="id" value="central" />
      <option name="name" value="Maven Central repository" />
      <option name="url" value="https://repo1.maven.org/maven2" />
    </remote-repository>
    <remote-repository>
      <option name="id" value="central" />
      <option name="name" value="Central Repository" />
      <option name="url" value="http://maven.aliyun.com/nexus/content/groups/public" />
    </remote-repository>
    <remote-repository>
      <option name="id" value="jboss.community" />
      <option name="name" value="JBoss Community repository" />
      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
    </remote-repository>
  </component>
</project>
DriverZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpResult.java
New file
@@ -0,0 +1,45 @@
package com.stylefeng.guns.modular.system.util;
/**
 * http请求返回封装
 */
public class HttpResult {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * 返回结果
     */
    private String data;
    /**
     * 返回封装结果
     * @param code
     * @param data
     * @return
     */
    public static HttpResult getHttpResult(Integer code, String data){
        HttpResult httpResult = new HttpResult();
        httpResult.setCode(code);
        httpResult.setData(data);
        return httpResult;
    }
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getData() {
        return data;
    }
    public void setData(String data) {
        this.data = data;
    }
}
DriverZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java
@@ -57,7 +57,7 @@
    @Autowired
    private ITransactionDetailsService transactionDetailsService;
    private String path = "http://120.77.11.218:8868/";
    private String path = "http://127.0.0.1:8868/";
    /**
@@ -72,15 +72,26 @@
            mileage += (orderPrivateCar.getMileage() == null ? 0 : orderPrivateCar.getMileage());
        }
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//注册地行政区划代码
        jsonObject.put("Address", 530602);//注册地行政区划代码
        jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌
        jsonObject.put("TotalMile", Integer.valueOf(mileage / 1000));//行驶总里程(km)
        jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", new Date());
        Map<String, Object> map = new HashMap<>();
        map.put("baseInfoVehicleTotalMile", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/baseInfoVehicleTotalMile", map,null,"form");
        System.out.println("网约车车辆里程信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/baseInfoVehicleTotalMile", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("--------------------------网约车车辆里程信息------------------------:" + result);
    }
@@ -92,7 +103,7 @@
        OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId);
        Map<String, Object> query = systemPriceMapper.query(orderPrivateCar.getCompanyId(), 1, orderPrivateCar.getServerCarModelId());
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//发起第行政区划代码
        jsonObject.put("Address", 530602);//发起第行政区划代码
        jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单编号
        jsonObject.put("DepartTime", orderPrivateCar.getTravelTime());//预计用车时间YYYYMMDDhhmmss
        jsonObject.put("OrderTime", orderPrivateCar.getInsertTime());//订单发起时间YYYYMMDDhhmmss
@@ -107,8 +118,19 @@
        jsonObject.put("FareType", query.get("id").toString());//运价类型编码
        Map<String, Object> map = new HashMap<>();
        map.put("orderCreate", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderCreate", map,null,"form");
        System.out.println("订单发起接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderCreate", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("---------------------------订单发起接口----------------------:" + result);
    }
@@ -122,7 +144,7 @@
        Car car = carService.selectById(orderPrivateCar.getCarId());
        String value = redisUtil.getValue("DRIVER" + orderPrivateCar.getDriverId());
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//发起地行政区划代码
        jsonObject.put("Address", 530602);//发起地行政区划代码
        jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单编号
        jsonObject.put("Longitude", Double.valueOf(value.split(",")[0]));//车辆经度
        jsonObject.put("Latitude", Double.valueOf(value.split(",")[1]));//车辆纬度
@@ -133,8 +155,20 @@
        jsonObject.put("DistributeTime", new Date());//派单成功时间YYYYMMDDhhmmss
        Map<String, Object> map = new HashMap<>();
        map.put("orderMatch", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderMatch", map,null,"form");
        System.out.println("订单成功接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderMatch", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("--------------------------------订单成功接口---------------------------:" + result);
    }
@@ -156,8 +190,19 @@
            jsonObject.put("Encrypt", 1);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
            Map<String, Object> map = new HashMap<>();
            map.put("operateLogin", jsonObject.toJSONString());
            String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateLogin", map,null,"form");
            System.out.println("车辆经营上线接口:" + result);
            Map<String, String> header = new HashMap<>();
            header.put("Connection", "keep-alive");
            header.put("Content-Type", "application/x-www-form-urlencoded");
            header.put("Accept", "*/*");
            header.put("Accept-Encoding", "gzip");
            header.put("Accept-Charset", "utf-8");
            String result = null;
            try {
                result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateLogin", map, header,"form").toString();
            } catch (Exception e) {
                e.printStackTrace();
            }
            System.err.println("--------------------------车辆经营上线接口------------------------:" + result);
        }
    }
@@ -180,8 +225,19 @@
            jsonObject.put("Encrypt", 1);//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
            Map<String, Object> map = new HashMap<>();
            map.put("operateLogout", jsonObject.toJSONString());
            String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateLogout", map,null,"form");
            System.out.println("车辆经营下线接口:" + result);
            Map<String, String> header = new HashMap<>();
            header.put("Connection", "keep-alive");
            header.put("Content-Type", "application/x-www-form-urlencoded");
            header.put("Accept", "*/*");
            header.put("Accept-Encoding", "gzip");
            header.put("Accept-Charset", "utf-8");
            String result = null;
            try {
                result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateLogout", map, header,"form").toString();
            } catch (Exception e) {
                e.printStackTrace();
            }
            System.err.println("--------------------------------车辆经营下线接口------------------------:" + result);
        }
    }
@@ -222,8 +278,20 @@
        jsonObject.put("WaitTime", orderPrivateCar.getWait() * 60);//等待时间(秒)
        Map<String, Object> map = new HashMap<>();
        map.put("operateDepart", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateDepart", map,null,"form");
        System.out.println("经营出发接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateDepart", map,header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("--------------------------------经营出发接口-------------------------:" + result);
    }
@@ -243,8 +311,19 @@
        jsonObject.put("DriveTime", Double.valueOf((orderPrivateCar.getGetoffTime().getTime() - orderPrivateCar.getBoardingTime().getTime()) / 1000).intValue());//载客时间(秒)
        Map<String, Object> map = new HashMap<>();
        map.put("operateArrive", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateArrive", map,null,"form");
        System.out.println("经营到达接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operateArrive", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("-------------------------------经营到达接口-------------------------:" + result);
    }
@@ -261,7 +340,7 @@
        TransactionDetails transactionDetails = transactionDetailsService.selectById(new EntityWrapper<TransactionDetails>().eq("orderType", 1).eq("orderId", orderId));
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单号
        jsonObject.put("OnArea", 450204);//上车位置行政区划代码
        jsonObject.put("OnArea", 530602);//上车位置行政区划代码
        jsonObject.put("DriverName", driver.getName());//机动车驾驶员
        jsonObject.put("LicenseId", driver.getDriveCard());//机动车驾驶证号
        jsonObject.put("FareType", query.get("id").toString());//运价类型编码(由网约车公司定义,与运价信息接口保持一街)
@@ -322,8 +401,19 @@
        jsonObject.put("InvoiceStatus", "0");//发票状态(0:未开票,1:已开票,2:未知)
        Map<String, Object> map = new HashMap<>();
        map.put("operatePay", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operatePay", map,null,"form");
        System.out.println("经营支付接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operatePay", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("-----------------------经营支付接口-----------------------:" + result);
    }
@@ -368,7 +458,7 @@
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("LicenseId", driver.getDriveCard());//机动车驾驶证号
        jsonObject.put("DriverRegionCode", 450204);//行政区划代码
        jsonObject.put("DriverRegionCode", 530602);//行政区划代码
        jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌
        jsonObject.put("PositionTime", new Date());//定位时间(时间戳)
        jsonObject.put("Longitude", Longitude);//经度
@@ -381,8 +471,20 @@
        jsonObject.put("OrderId", orderNum);//订单编号
        Map<String, Object> map = new HashMap<>();
        map.put("positionDriver", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/positionDriver", map,null,"form");
        System.out.println("驾驶员定位信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/positionDriver", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("-----------------------------驾驶员定位信息------------------------:" + result);
    }
@@ -425,7 +527,7 @@
        }
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌
        jsonObject.put("VehicleRegionCode", 450204);//行政区划代码
        jsonObject.put("VehicleRegionCode", 530602);//行政区划代码
        jsonObject.put("PositionTime", new Date());//定位时间(时间戳)
        jsonObject.put("Longitude", Longitude);//经度
        jsonObject.put("Latitude", Latitude);//纬度
@@ -440,8 +542,19 @@
        jsonObject.put("OrderId", orderNum);//订单编号(非营运状态下填"0")
        Map<String, Object> map = new HashMap<>();
        map.put("positionVehicle", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/positionVehicle", map,null,"form");
        System.out.println("车辆定位信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/positionVehicle", map, header,"form").toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("----------------------------车辆定位信息---------------------------:" + result);
    }
ManagementZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java
@@ -132,14 +132,14 @@
     */
    public void baseInfoCompanyPay(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("PayName", "支付宝(中国)网络技术有限公司");//银行或者非银行支付机构名称
        jsonObject.put("PayId", "2000133000019");//非银行支付机构支付业务许可证编号
        jsonObject.put("PayType", "1");//支付业务类型
        jsonObject.put("PayName", "深圳市微信支付科技有限公司");//银行或者非银行支付机构名称
        jsonObject.put("PayId", "Z2000444000013");//非银行支付机构支付业务许可证编号
        jsonObject.put("PayType", "互联网支付");//支付业务类型
        jsonObject.put("PayScope", "全国");//业务覆盖范围
        jsonObject.put("PrepareBank", "中国工商银行");//备付金存管银行
        jsonObject.put("CountDate", 15);//结算周期
        jsonObject.put("State", 0);//状态(0:有效,1:失效)
        jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("PrepareBank", "中国建设银行股份有限公司昭通珠泉支行");//备付金存管银行
        jsonObject.put("CountDate", 1);//结算周期
        jsonObject.put("State", 1);//状态(0:有效,1:失效)
        jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", new Date());
        Map<String, String> map = new HashMap<>();
        map.put("baseInfoCompanyPay", jsonObject.toJSONString());
@@ -153,19 +153,19 @@
     */
    public void baseInfoCompanyService(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//行政区划代码
        jsonObject.put("ServiceName", "广西云森科技有限公司");//服务机构名称
        jsonObject.put("ServiceNo", "45020401");//服务机构代码
        jsonObject.put("DetailAddress", "柳州市柳邕路新翔小区二区6栋11号");//服务机构地址
        jsonObject.put("ResponsibleName", "翁克顺");//服务机构负责人姓名
        jsonObject.put("ResponsiblePhone", "13907728585");//负责人联系电话
        jsonObject.put("ManagerName", "吴志武");//服务机构管理人姓名
        jsonObject.put("ManagerPhone", "15907720083");//管理人联系电话
        jsonObject.put("ContactPhone", "0772-3633333");//服务机构紧急联系电话
        jsonObject.put("MailAddress", "柳州市城中区滨江西路15栋2号OK充电站");//行政文书送达邮寄地址
        jsonObject.put("CreateDate", "2015年09月18日");//服务机构设立日期
        jsonObject.put("State", 0);//状态(0:有效,1:失效)
        jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("Address", 530602);//行政区划代码
        jsonObject.put("ServiceName", "昭通市睿邦科技有限公司");//服务机构名称
        jsonObject.put("ServiceNo", "91530600MA6K70Q50D");//服务机构代码
        jsonObject.put("DetailAddress", "云南省昭通市昭阳区龙泉路501号");//服务机构地址
        jsonObject.put("ResponsibleName", "虎尊彦");//服务机构负责人姓名
        jsonObject.put("ResponsiblePhone", "13508701638");//负责人联系电话
        jsonObject.put("ManagerName", "虎尊彦");//服务机构管理人姓名
        jsonObject.put("ManagerPhone", "13508701638");//管理人联系电话
        jsonObject.put("ContactPhone", "14736572423");//服务机构紧急联系电话
        jsonObject.put("MailAddress", "云南省昭通市昭阳区龙泉路501号");//行政文书送达邮寄地址
        jsonObject.put("CreateDate", "2016年07月19日");//服务机构设立日期
        jsonObject.put("State", 1);//状态(0:有效,1:失效)
        jsonObject.put("Flag", 2);//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", new Date());
        Map<String, String> map = new HashMap<>();
        map.put("baseInfoCompanyService", jsonObject.toJSONString());
@@ -183,7 +183,7 @@
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", tCompany.getAddressCode());//许可地行政区划代码
        jsonObject.put("Certificate", tCompany.getLicenseNumber());//网络预约出租车经营许可证号
        jsonObject.put("OperationArea", "广西壮族自治区柳州市城区");//经营区域
        jsonObject.put("OperationArea", tCompany.getServiceScope());//经营区域
        jsonObject.put("OwnerName", tCompany.getName());//公司名称
        jsonObject.put("Organization", tCompany.getLicensingAgency());//发证机构名称
        jsonObject.put("StartDate", tCompany.getLicenseStartTime());//有效期起YYYYMMDD
@@ -209,7 +209,7 @@
        JSONObject price = JSON.parseObject(content);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//运价适用地行政区划代码
        jsonObject.put("Address", 530602);//运价适用地行政区划代码
        jsonObject.put("FareType", id);//运价类型编码(由网约车平台公司统一编码,应确保唯一性)
        jsonObject.put("FareTypeNote", tSystemPrice.getFareTypeNote());//运价类型说明
        jsonObject.put("FareValidOn", new Date());//运价有效期起YYYYMMDDhhmmss
@@ -273,7 +273,7 @@
        System.out.println("上传图片文件:" + result_);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//车辆所在城市行政区划代码
        jsonObject.put("Address", 530602);//车辆所在城市行政区划代码
        jsonObject.put("VehicleNo", tCar.getCarLicensePlate());//车辆号牌
        jsonObject.put("PlateColor", tCar.getPlateColor());//车牌颜色
        jsonObject.put("Seats", tCarModel.getSeat());//核定载客位
@@ -365,7 +365,7 @@
        System.out.println("上传图片文件:" + result1_);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//注册地行政区划代码
        jsonObject.put("Address", 530602);//注册地行政区划代码
        jsonObject.put("DriverName", tDriver.getName());//机动车驾驶员姓名
        jsonObject.put("DriverPhone", tDriver.getPhone());//驾驶员手机号
        jsonObject.put("DriverGender", (tDriver.getSex() == 1 ? "男" : "女"));//驾驶员性别
@@ -422,7 +422,7 @@
        DriverTrain driverTrain = driverTrainMapper.selectById(id);
        TDriver driver = driverService.selectById(driverTrain.getDriverId());
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//注册地行政区划代码
        jsonObject.put("Address", 530602);//注册地行政区划代码
        jsonObject.put("LicenseId", driver.getDriveCard());//机动车驾驶证号
        jsonObject.put("CourseName", driverTrain.getCourseName());//驾驶员培训课程名称
        jsonObject.put("CourseDate", driverTrain.getCourseDate());//培训课程日期YYYYMMDD
@@ -446,7 +446,7 @@
        TDriver tDriver = driverService.selectById(driverId);
        TVersionManagement type = versionManagementService.selectOne(new EntityWrapper<TVersionManagement>().eq("type", 2).orderBy("insertTime desc limit 0, 1"));
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//注册地行政区划代码
        jsonObject.put("Address", 530602);//注册地行政区划代码
        jsonObject.put("LicenseId", tDriver.getDriveCard());//机动车驾驶证号
        jsonObject.put("DriverPhone", tDriver.getPhone());//驾驶员手机号
        jsonObject.put("NetType", phoneExp(tDriver.getPhone()));//手机运营商(1:中国联通,2:中国移动,3:中国电信,4:其他)
@@ -488,7 +488,7 @@
                        .between("insert_time", s.getTime(), e.getTime())
        );
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("Address", 450204);//注册地行政区划代码
        jsonObject.put("Address", 530602);//注册地行政区划代码
        jsonObject.put("LicenseId", tDriver.getDriveCard());//机动车驾驶证号
        jsonObject.put("Cycle", s.getTime());//统计周期(统计周期按月,内容填写统计月份YYYYMM)
        jsonObject.put("OrderCount", i);//完成订单次数
ManagementZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushURL.java
@@ -7,6 +7,6 @@
    public static String withdraw_auth_url =  zull_user_url + "/driver/base/withdrawal/withdrawalAudit";
    public static String cancel_order_url =  zull_user_url + "/user/base/order/sendOrderState";
    public static String freeze_user_url =  zull_user_url + "/user/base/user/freeze";
    public static String ministry_of_transport_data = "http://120.77.11.218:8868/ministryOfTransport";
    public static String ministry_of_transport_data = "http://127.0.0.1:8868/ministryOfTransport";
    public static String ministry_of_transport_ftp = "http://120.77.11.218:8868/ftp";
}
MinistryOfTransport/.mvn/wrapper/MavenWrapperDownloader.java
New file
@@ -0,0 +1,118 @@
/*
 * Copyright 2007-present the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
    private static final String WRAPPER_VERSION = "0.5.6";
    /**
     * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
     */
    private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
            + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
    /**
     * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
     * use instead of the default one.
     */
    private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
            ".mvn/wrapper/maven-wrapper.properties";
    /**
     * Path where the maven-wrapper.jar will be saved to.
     */
    private static final String MAVEN_WRAPPER_JAR_PATH =
            ".mvn/wrapper/maven-wrapper.jar";
    /**
     * Name of the property which should be used to override the default download url for the wrapper.
     */
    private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
    public static void main(String args[]) {
        System.out.println("- Downloader started");
        File baseDirectory = new File(args[0]);
        System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
        // If the maven-wrapper.properties exists, read it and check if it contains a custom
        // wrapperUrl parameter.
        File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
        String url = DEFAULT_DOWNLOAD_URL;
        if (mavenWrapperPropertyFile.exists()) {
            FileInputStream mavenWrapperPropertyFileInputStream = null;
            try {
                mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
                Properties mavenWrapperProperties = new Properties();
                mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
                url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
            } catch (IOException e) {
                System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
            } finally {
                try {
                    if (mavenWrapperPropertyFileInputStream != null) {
                        mavenWrapperPropertyFileInputStream.close();
                    }
                } catch (IOException e) {
                    // Ignore ...
                }
            }
        }
        System.out.println("- Downloading from: " + url);
        File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
        if (!outputFile.getParentFile().exists()) {
            if (!outputFile.getParentFile().mkdirs()) {
                System.out.println(
                        "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
            }
        }
        System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
        try {
            downloadFileFromURL(url, outputFile);
            System.out.println("Done");
            System.exit(0);
        } catch (Throwable e) {
            System.out.println("- Error downloading");
            e.printStackTrace();
            System.exit(1);
        }
    }
    private static void downloadFileFromURL(String urlString, File destination) throws Exception {
        if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
            String username = System.getenv("MVNW_USERNAME");
            char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
            Authenticator.setDefault(new Authenticator() {
                @Override
                protected PasswordAuthentication getPasswordAuthentication() {
                    return new PasswordAuthentication(username, password);
                }
            });
        }
        URL website = new URL(urlString);
        ReadableByteChannel rbc;
        rbc = Channels.newChannel(website.openStream());
        FileOutputStream fos = new FileOutputStream(destination);
        fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
        fos.close();
        rbc.close();
    }
}
MinistryOfTransport/.mvn/wrapper/maven-wrapper.jar
Binary files differ
MinistryOfTransport/.mvn/wrapper/maven-wrapper.properties
New file
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
MinistryOfTransport/mvnw
New file
@@ -0,0 +1,310 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven Start Up Batch script
#
# Required ENV vars:
# ------------------
#   JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
#   M2_HOME - location of maven2's installed home dir
#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
#     e.g. to debug Maven itself, use
#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
  if [ -f /etc/mavenrc ] ; then
    . /etc/mavenrc
  fi
  if [ -f "$HOME/.mavenrc" ] ; then
    . "$HOME/.mavenrc"
  fi
fi
# OS specific support.  $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
  CYGWIN*) cygwin=true ;;
  MINGW*) mingw=true;;
  Darwin*) darwin=true
    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
    if [ -z "$JAVA_HOME" ]; then
      if [ -x "/usr/libexec/java_home" ]; then
        export JAVA_HOME="`/usr/libexec/java_home`"
      else
        export JAVA_HOME="/Library/Java/Home"
      fi
    fi
    ;;
esac
if [ -z "$JAVA_HOME" ] ; then
  if [ -r /etc/gentoo-release ] ; then
    JAVA_HOME=`java-config --jre-home`
  fi
fi
if [ -z "$M2_HOME" ] ; then
  ## resolve links - $0 may be a link to maven's home
  PRG="$0"
  # need this for relative symlinks
  while [ -h "$PRG" ] ; do
    ls=`ls -ld "$PRG"`
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '/.*' > /dev/null; then
      PRG="$link"
    else
      PRG="`dirname "$PRG"`/$link"
    fi
  done
  saveddir=`pwd`
  M2_HOME=`dirname "$PRG"`/..
  # make it fully qualified
  M2_HOME=`cd "$M2_HOME" && pwd`
  cd "$saveddir"
  # echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
  [ -n "$M2_HOME" ] &&
    M2_HOME=`cygpath --unix "$M2_HOME"`
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
  [ -n "$CLASSPATH" ] &&
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
  [ -n "$M2_HOME" ] &&
    M2_HOME="`(cd "$M2_HOME"; pwd)`"
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
fi
if [ -z "$JAVA_HOME" ]; then
  javaExecutable="`which javac`"
  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
    # readlink(1) is not available as standard on Solaris 10.
    readLink=`which readlink`
    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
      if $darwin ; then
        javaHome="`dirname \"$javaExecutable\"`"
        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
      else
        javaExecutable="`readlink -f \"$javaExecutable\"`"
      fi
      javaHome="`dirname \"$javaExecutable\"`"
      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
      JAVA_HOME="$javaHome"
      export JAVA_HOME
    fi
  fi
fi
if [ -z "$JAVACMD" ] ; then
  if [ -n "$JAVA_HOME"  ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
      # IBM's JDK on AIX uses strange locations for the executables
      JAVACMD="$JAVA_HOME/jre/sh/java"
    else
      JAVACMD="$JAVA_HOME/bin/java"
    fi
  else
    JAVACMD="`which java`"
  fi
fi
if [ ! -x "$JAVACMD" ] ; then
  echo "Error: JAVA_HOME is not defined correctly." >&2
  echo "  We cannot execute $JAVACMD" >&2
  exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
  echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
  if [ -z "$1" ]
  then
    echo "Path not specified to find_maven_basedir"
    return 1
  fi
  basedir="$1"
  wdir="$1"
  while [ "$wdir" != '/' ] ; do
    if [ -d "$wdir"/.mvn ] ; then
      basedir=$wdir
      break
    fi
    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
    if [ -d "${wdir}" ]; then
      wdir=`cd "$wdir/.."; pwd`
    fi
    # end of workaround
  done
  echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
  if [ -f "$1" ]; then
    echo "$(tr -s '\n' ' ' < "$1")"
  fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
  exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
    if [ "$MVNW_VERBOSE" = true ]; then
      echo "Found .mvn/wrapper/maven-wrapper.jar"
    fi
else
    if [ "$MVNW_VERBOSE" = true ]; then
      echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
    fi
    if [ -n "$MVNW_REPOURL" ]; then
      jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
    else
      jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
    fi
    while IFS="=" read key value; do
      case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
      esac
    done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
    if [ "$MVNW_VERBOSE" = true ]; then
      echo "Downloading from: $jarUrl"
    fi
    wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
    if $cygwin; then
      wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
    fi
    if command -v wget > /dev/null; then
        if [ "$MVNW_VERBOSE" = true ]; then
          echo "Found wget ... using wget"
        fi
        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
            wget "$jarUrl" -O "$wrapperJarPath"
        else
            wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
        fi
    elif command -v curl > /dev/null; then
        if [ "$MVNW_VERBOSE" = true ]; then
          echo "Found curl ... using curl"
        fi
        if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
            curl -o "$wrapperJarPath" "$jarUrl" -f
        else
            curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
        fi
    else
        if [ "$MVNW_VERBOSE" = true ]; then
          echo "Falling back to using Java to download"
        fi
        javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
        # For Cygwin, switch paths to Windows format before running javac
        if $cygwin; then
          javaClass=`cygpath --path --windows "$javaClass"`
        fi
        if [ -e "$javaClass" ]; then
            if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
                if [ "$MVNW_VERBOSE" = true ]; then
                  echo " - Compiling MavenWrapperDownloader.java ..."
                fi
                # Compiling the Java class
                ("$JAVA_HOME/bin/javac" "$javaClass")
            fi
            if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
                # Running the downloader
                if [ "$MVNW_VERBOSE" = true ]; then
                  echo " - Running MavenWrapperDownloader.java ..."
                fi
                ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
            fi
        fi
    fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
  echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
  [ -n "$M2_HOME" ] &&
    M2_HOME=`cygpath --path --windows "$M2_HOME"`
  [ -n "$JAVA_HOME" ] &&
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  [ -n "$CLASSPATH" ] &&
    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
  $MAVEN_OPTS \
  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
MinistryOfTransport/mvnw.cmd
New file
@@ -0,0 +1,182 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements.  See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership.  The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License.  You may obtain a copy of the License at
@REM
@REM    https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied.  See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM     e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
    IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
    if "%MVNW_VERBOSE%" == "true" (
        echo Found %WRAPPER_JAR%
    )
) else (
    if not "%MVNW_REPOURL%" == "" (
        SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
    )
    if "%MVNW_VERBOSE%" == "true" (
        echo Couldn't find %WRAPPER_JAR%, downloading it ...
        echo Downloading from: %DOWNLOAD_URL%
    )
    powershell -Command "&{"^
        "$webclient = new-object System.Net.WebClient;"^
        "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
        "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
        "}"^
        "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
        "}"
    if "%MVNW_VERBOSE%" == "true" (
        echo Finished downloading %WRAPPER_JAR%
    )
)
@REM End of extension
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
MinistryOfTransport/pom.xml
New file
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.4.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.sinata</groupId>
    <artifactId>ministryoftransport</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>ministryOfTransport</name>
    <description>MinistryOfTransport project for Spring Boot</description>
    <packaging>war</packaging>
    <properties>
        <java.version>1.8</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.11.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.2.73</version>
        </dependency>
        <dependency><!--FTPjar-->
            <groupId>commons-net</groupId>
            <artifactId>commons-net</artifactId>
            <version>3.6</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>aliyun-java-sdk-core</artifactId>
            <version>4.4.3</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/MinistryoftransportApplication.java
New file
@@ -0,0 +1,21 @@
package com.sinata.ministryoftransport;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
@EnableScheduling
@SpringBootApplication
public class MinistryoftransportApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(MinistryoftransportApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(MinistryoftransportApplication.class);
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/FTPController.java
New file
@@ -0,0 +1,49 @@
package com.sinata.ministryoftransport.controller;
import com.alibaba.fastjson.JSON;
import com.sinata.ministryoftransport.util.FTPUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
 * FTP上传控制器
 */
@RestController
@RequestMapping("/ftp")
public class FTPController {
    @Autowired
    private FTPUtil ftpUtil;
    /**
     * 文件上传成功后移动到新的文件夹中
     * @param path          文件上传路径
     * @param fileName      上传文件名称
     * @param url           上传文件网络地址
     * @param newFilePath   移动到新的文件路径及新文件名称
     */
    @ResponseBody
    @PostMapping("/uploadAndMoveFile")
    public String uploadAndMoveFile(String path, String fileName, String url, String newFilePath){
        try {
            //上传文件
            boolean b = ftpUtil.uploadFile(path, fileName, url);
            if(b){
                //移动文件
                boolean b1 = ftpUtil.moveFile(path + "/" + fileName, newFilePath);
                if(b1){
                    System.out.println("移动文件成功");
                    return "上传文件成功";
                }
            }
        }catch (Exception e){
            e.printStackTrace();
        }
        return "上传文件失败";
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/HttpTestController.java
New file
@@ -0,0 +1,40 @@
package com.sinata.ministryoftransport.controller;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
@RestController
@RequestMapping("/")
public class HttpTestController {
    /**
     * 测试上传数据接口
     * 用于验证上传数据的准确性
     * 模拟交通部接口
     * @param request
     * @param response
     */
    @ResponseBody
    @RequestMapping("/baseinfo/company")
    public void testPush(HttpServletRequest request, HttpServletResponse response){
        try {
            BufferedReader br = request.getReader();
            String str, wholeStr = "";
            while((str = br.readLine()) != null){
                wholeStr += str;
            }
            JSONObject jsonObject = JSONObject.parseObject(wholeStr);
            System.out.println(jsonObject.toJSONString());
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/controller/MinistryOfTransportController.java
New file
@@ -0,0 +1,528 @@
package com.sinata.ministryoftransport.controller;
import com.sinata.ministryoftransport.server.IMinistryOfTransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
 * 交通部上传接口
 */
@RestController
@RequestMapping("/ministryOfTransport")
public class MinistryOfTransportController {
    @Autowired
    private IMinistryOfTransportService ministryOfTransportService;
    /**
     * 上传企业基本信息
     */
    @ResponseBody
    @PostMapping("/baseInfoCompany")
    public String baseInfoCompany(String baseInfoCompany){
        try {
            return ministryOfTransportService.baseInfoCompany(baseInfoCompany);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 上传网约车平台公司营运规模信息
     * @param baseInfoCompanyStat
     */
    @ResponseBody
    @PostMapping("/baseInfoCompanyStat")
    public String baseInfoCompanyStat(String baseInfoCompanyStat){
        try {
            return ministryOfTransportService.baseInfoCompanyStat(baseInfoCompanyStat);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 上传网约车平台公司支付信息
     * @param baseInfoCompanyPay
     */
    @ResponseBody
    @PostMapping("/baseInfoCompanyPay")
    public String baseInfoCompanyPay(String baseInfoCompanyPay){
        try {
            return ministryOfTransportService.baseInfoCompanyPay(baseInfoCompanyPay);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 上传网约车平台公司服务机构
     * @param baseInfoCompanyService
     */
    @ResponseBody
    @PostMapping("/baseInfoCompanyService")
    public String baseInfoCompanyService(String baseInfoCompanyService){
        try {
            return ministryOfTransportService.baseInfoCompanyService(baseInfoCompanyService);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 网约车平台公司经营许可
     * @param baseInfoCompanyPermit
     */
    @ResponseBody
    @PostMapping("/baseInfoCompanyPermit")
    public String baseInfoCompanyPermit(String baseInfoCompanyPermit){
        try {
            return ministryOfTransportService.baseInfoCompanyPermit(baseInfoCompanyPermit);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 网约车平台公司运价信息
     * @param baseInfoCompanyFare
     */
    @ResponseBody
    @PostMapping("/baseInfoCompanyFare")
    public String baseInfoCompanyFare(String baseInfoCompanyFare){
        try {
            return ministryOfTransportService.baseInfoCompanyFare(baseInfoCompanyFare);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 车辆基本信息
     * @param baseInfoVehicle
     */
    @ResponseBody
    @PostMapping("/baseInfoVehicle")
    public String baseInfoVehicle(String baseInfoVehicle){
        try {
            return ministryOfTransportService.baseInfoVehicle(baseInfoVehicle);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 车辆保险信息
     * @param baseInfoVehicleInsurance
     */
    @ResponseBody
    @PostMapping("/baseInfoVehicleInsurance")
    public String baseInfoVehicleInsurance(String baseInfoVehicleInsurance){
        try {
            return ministryOfTransportService.baseInfoVehicleInsurance(baseInfoVehicleInsurance);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 网约车车辆里程信息
     * @param baseInfoVehicleTotalMile
     */
    @ResponseBody
    @PostMapping("/baseInfoVehicleTotalMile")
    public String baseInfoVehicleTotalMile(String baseInfoVehicleTotalMile){
        try {
            return ministryOfTransportService.baseInfoVehicleTotalMile(baseInfoVehicleTotalMile);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员基本信息
     * @param baseInfoDriver
     */
    @ResponseBody
    @PostMapping("/baseInfoDriver")
    public String baseInfoDriver(String baseInfoDriver){
        try {
            return ministryOfTransportService.baseInfoDriver(baseInfoDriver);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 网约车驾驶员培训信息
     * @param baseInfoDriverEducate
     */
    @ResponseBody
    @PostMapping("/baseInfoDriverEducate")
    public String baseInfoDriverEducate(String baseInfoDriverEducate){
        try {
            return ministryOfTransportService.baseInfoDriverEducate(baseInfoDriverEducate);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员移动终端信息
     * @param baseInfoDriverApp
     */
    @ResponseBody
    @PostMapping("/baseInfoDriverApp")
    public String baseInfoDriverApp(String baseInfoDriverApp){
        try {
            return ministryOfTransportService.baseInfoDriverApp(baseInfoDriverApp);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员统计信息
     * @param baseInfoDriverStat
     */
    @ResponseBody
    @PostMapping("/baseInfoDriverStat")
    public String baseInfoDriverStat(String baseInfoDriverStat){
        try {
            return ministryOfTransportService.baseInfoDriverStat(baseInfoDriverStat);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 乘客基本信息
     * @param baseInfoPassenger
     */
    @ResponseBody
    @PostMapping("/baseInfoPassenger")
    public String baseInfoPassenger(String baseInfoPassenger){
        try {
            return ministryOfTransportService.baseInfoPassenger(baseInfoPassenger);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 订单发起接口
     * @param orderCreate
     */
    @ResponseBody
    @PostMapping("/orderCreate")
    public String orderCreate(String orderCreate){
        try {
            return ministryOfTransportService.orderCreate(orderCreate);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 订单成功接口
     * @param orderMatch
     */
    @ResponseBody
    @PostMapping("/orderMatch")
    public String orderMatch(String orderMatch){
        try {
            return ministryOfTransportService.orderMatch(orderMatch);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 订单撤销接口
     * @param orderCancel
     */
    @ResponseBody
    @PostMapping("/orderCancel")
    public String orderCancel(String orderCancel){
        try {
            return ministryOfTransportService.orderCancel(orderCancel);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 车辆经营上线接口
     * @param operateLogin
     */
    @ResponseBody
    @PostMapping("/operateLogin")
    public String operateLogin(String operateLogin){
        try {
            return ministryOfTransportService.operateLogin(operateLogin);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 车辆经营下线接口
     * @param operateLogout
     */
    @ResponseBody
    @PostMapping("/operateLogout")
    public String operateLogout(String operateLogout){
        try {
            return ministryOfTransportService.operateLogout(operateLogout);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 经营出发接口
     * @param operateDepart
     */
    @ResponseBody
    @PostMapping("/operateDepart")
    public String operateDepart(String operateDepart){
        try {
            return ministryOfTransportService.operateDepart(operateDepart);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 经营到达接口
     * @param operateArrive
     */
    @ResponseBody
    @PostMapping("/operateArrive")
    public String operateArrive(String operateArrive){
        try {
            return ministryOfTransportService.operateArrive(operateArrive);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 经营支付接口
     * @param operatePay
     */
    @ResponseBody
    @PostMapping("/operatePay")
    public String operatePay(String operatePay){
        try {
            return ministryOfTransportService.operatePay(operatePay);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员定位信息
     * @param positionDriver
     */
    @ResponseBody
    @PostMapping("/positionDriver")
    public String positionDriver(String positionDriver){
        try {
            return ministryOfTransportService.positionDriver(positionDriver);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 车辆定位信息
     * @param positionVehicle
     */
    @ResponseBody
    @PostMapping("/positionVehicle")
    public String positionVehicle(String positionVehicle){
        try {
            return ministryOfTransportService.positionVehicle(positionVehicle);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 乘客评价信息
     * @param ratedPassenger
     */
    @ResponseBody
    @PostMapping("/ratedPassenger")
    public String ratedPassenger(String ratedPassenger){
        try {
            return ministryOfTransportService.ratedPassenger(ratedPassenger);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 乘客投诉信息
     * @param ratedPassengerComplaint
     */
    @ResponseBody
    @PostMapping("/ratedPassengerComplaint")
    public String ratedPassengerComplaint(String ratedPassengerComplaint){
        try {
            return ministryOfTransportService.ratedPassengerComplaint(ratedPassengerComplaint);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员处罚信息
     * @param ratedDriverPunish
     */
    @ResponseBody
    @PostMapping("/ratedDriverPunish")
    public String ratedDriverPunish(String ratedDriverPunish){
        try {
            return ministryOfTransportService.ratedDriverPunish(ratedDriverPunish);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 驾驶员信誉信息
     * @param ratedDriver
     */
    @ResponseBody
    @PostMapping("/ratedDriver")
    public String ratedDriver(String ratedDriver){
        try {
            return ministryOfTransportService.ratedDriver(ratedDriver);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 私人小客车合乘信息服务平台基本信息
     * @param shareCompany
     */
    @ResponseBody
    @PostMapping("/shareCompany")
    public String shareCompany(String shareCompany){
        try {
            return ministryOfTransportService.shareCompany(shareCompany);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 私人小客车合乘驾驶员行程发布接口
     * @param shareRoute
     */
    @ResponseBody
    @PostMapping("/shareRoute")
    public String shareRoute(String shareRoute){
        try {
            return ministryOfTransportService.shareRoute(shareRoute);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 私人小客车合乘订单接口
     * @param shareOrder
     */
    @ResponseBody
    @PostMapping("/shareOrder")
    public String shareOrder(String shareOrder){
        try {
            return ministryOfTransportService.shareOrder(shareOrder);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
    /**
     * 私人小客车合乘订单支付接口
     * @param sharePay
     */
    @ResponseBody
    @PostMapping("/sharePay")
    public String sharePay(String sharePay){
        try {
            return ministryOfTransportService.sharePay(sharePay);
        }catch (Exception e){
            e.printStackTrace();
        }
        return "返回异常";
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompany.java
New file
@@ -0,0 +1,197 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 企业基础信息
 */
public class BaseInfoCompany {
    /**
     * 企业名称
     */
    private String CompanyName;
    /**
     * 统一社会信用代码
     */
    private String Identifier;
    /**
     * 行政区划代码(见 GB/T 2260)
     */
    private Integer Address;
    /**
     * 经营范围
     */
    private String BusinessScope;
    /**
     * 通信地址
     */
    private String ContactAddress;
    /**
     * 经营业户经济类型(见 JT/T415-2006 中5.1.8规定)
     */
    private String EconomicType;
    /**
     * 注册资本(按照营业执照内容填写)
     */
    private String RegCapital;
    /**
     * 法人代表姓名(按照营业执照内容填写)
     */
    private String LegalName;
    /**
     * 法人代表身份证号码
     */
    private String LegalID;
    /**
     * 法人代表电话
     */
    private String LegalPhone;
    /**
     * 法人代表身份证扫描件名称
     */
    private String LegalPhoto;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间(网约车平台完成数据更的时间)
     */
    private Date UpdateTime;
    public String getCompanyName() {
        return CompanyName;
    }
    public void setCompanyName(String companyName) {
        CompanyName = companyName;
    }
    public String getIdentifier() {
        return Identifier;
    }
    public void setIdentifier(String identifier) {
        Identifier = identifier;
    }
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getBusinessScope() {
        return BusinessScope;
    }
    public void setBusinessScope(String businessScope) {
        BusinessScope = businessScope;
    }
    public String getContactAddress() {
        return ContactAddress;
    }
    public void setContactAddress(String contactAddress) {
        ContactAddress = contactAddress;
    }
    public String getEconomicType() {
        return EconomicType;
    }
    public void setEconomicType(String economicType) {
        EconomicType = economicType;
    }
    public String getRegCapital() {
        return RegCapital;
    }
    public void setRegCapital(String regCapital) {
        RegCapital = regCapital;
    }
    public String getLegalName() {
        return LegalName;
    }
    public void setLegalName(String legalName) {
        LegalName = legalName;
    }
    public String getLegalID() {
        return LegalID;
    }
    public void setLegalID(String legalID) {
        LegalID = legalID;
    }
    public String getLegalPhone() {
        return LegalPhone;
    }
    public void setLegalPhone(String legalPhone) {
        LegalPhone = legalPhone;
    }
    public String getLegalPhoto() {
        return LegalPhoto;
    }
    public void setLegalPhoto(String legalPhoto) {
        LegalPhoto = legalPhoto;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompany{" +
                "CompanyName='" + CompanyName + '\'' +
                ", Identifier='" + Identifier + '\'' +
                ", Address=" + Address +
                ", BusinessScope='" + BusinessScope + '\'' +
                ", ContactAddress='" + ContactAddress + '\'' +
                ", EconomicType='" + EconomicType + '\'' +
                ", RegCapital='" + RegCapital + '\'' +
                ", LegalName='" + LegalName + '\'' +
                ", LegalID='" + LegalID + '\'' +
                ", LegalPhone='" + LegalPhone + '\'' +
                ", LegalPhoto='" + LegalPhoto + '\'' +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyFare.java
New file
@@ -0,0 +1,353 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车平台公司运价信息
 */
public class BaseInfoCompanyFare {
    /**
     * 运价适用地行政区划代码
     */
    private Integer Address;
    /**
     * 运价类型编码(由网约车平台公司统一编码,应确保唯一性)
     */
    private String FareType;
    /**
     * 运价类型说明
     */
    private String FareTypeNote;
    /**
     * 运价有效期起
     */
    private Date FareValidOn;
    /**
     * 运价有效止
     */
    private Date FareValidOff;
    /**
     * 起步价(元)
     */
    private Double StartFare;
    /**
     * 起步里程(km)
     */
    private Integer StartMile;
    /**
     * 计程单价(按公里/元)
     */
    private Double UnitPricePerMile;
    /**
     * 计时单价(按分钟/元)
     */
    private Double UnitPricePerMinute;
    /**
     * 单程加价单价(元)
     */
    private Double UpPrice;
    /**
     * 单程加价公里(km)
     */
    private Integer UpPriceStartMile;
    /**
     * 营运早高峰时间起(HHmm 24小时)
     */
    private String MorningPeakTimeOn;
    /**
     * 营运早高峰时间止(HHmm 24小时)
     */
    private String MorningPeakTimeOff;
    /**
     * 营运晚高峰时间起(HHmm 24小时)
     */
    private String EveningPeakTimeOn;
    /**
     * 营运晚高峰时间止(HHmm 24小时)
     */
    private String EveningPeakTimeOff;
    /**
     * 其他营运高等时间起(HHmm 24小时)
     */
    private String OtherPeakTimeOn;
    /**
     * 其他营运高等时间止(HHmm 24小时)
     */
    private String OtherPeakTineOff;
    /**
     * 高峰时间单程加价单价(元)
     */
    private Double PeakUnitPrice;
    /**
     * 高峰时间单程加价公里(km)
     */
    private Integer PeakPriceStartMile;
    /**
     * 低速计时加价(按分钟 元)
     */
    private Double LowSpeedPriceMinute;
    /**
     * 夜间费(按公里 元)
     */
    private Double NightPricePerMile;
    /**
     * 夜间费(按分钟 元)
     */
    private Double NightPricePerMinute;
    /**
     * 其它加价金额(元)
     */
    private Double OtherPrice;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    public String getFareTypeNote() {
        return FareTypeNote;
    }
    public void setFareTypeNote(String fareTypeNote) {
        FareTypeNote = fareTypeNote;
    }
    public Date getFareValidOn() {
        return FareValidOn;
    }
    public void setFareValidOn(Date fareValidOn) {
        FareValidOn = fareValidOn;
    }
    public Date getFareValidOff() {
        return FareValidOff;
    }
    public void setFareValidOff(Date fareValidOff) {
        FareValidOff = fareValidOff;
    }
    public Double getStartFare() {
        return StartFare;
    }
    public void setStartFare(Double startFare) {
        StartFare = startFare;
    }
    public Integer getStartMile() {
        return StartMile;
    }
    public void setStartMile(Integer startMile) {
        StartMile = startMile;
    }
    public Double getUnitPricePerMile() {
        return UnitPricePerMile;
    }
    public void setUnitPricePerMile(Double unitPricePerMile) {
        UnitPricePerMile = unitPricePerMile;
    }
    public Double getUnitPricePerMinute() {
        return UnitPricePerMinute;
    }
    public void setUnitPricePerMinute(Double unitPricePerMinute) {
        UnitPricePerMinute = unitPricePerMinute;
    }
    public Double getUpPrice() {
        return UpPrice;
    }
    public void setUpPrice(Double upPrice) {
        UpPrice = upPrice;
    }
    public Integer getUpPriceStartMile() {
        return UpPriceStartMile;
    }
    public void setUpPriceStartMile(Integer upPriceStartMile) {
        UpPriceStartMile = upPriceStartMile;
    }
    public String getMorningPeakTimeOn() {
        return MorningPeakTimeOn;
    }
    public void setMorningPeakTimeOn(String morningPeakTimeOn) {
        MorningPeakTimeOn = morningPeakTimeOn;
    }
    public String getMorningPeakTimeOff() {
        return MorningPeakTimeOff;
    }
    public void setMorningPeakTimeOff(String morningPeakTimeOff) {
        MorningPeakTimeOff = morningPeakTimeOff;
    }
    public String getEveningPeakTimeOn() {
        return EveningPeakTimeOn;
    }
    public void setEveningPeakTimeOn(String eveningPeakTimeOn) {
        EveningPeakTimeOn = eveningPeakTimeOn;
    }
    public String getEveningPeakTimeOff() {
        return EveningPeakTimeOff;
    }
    public void setEveningPeakTimeOff(String eveningPeakTimeOff) {
        EveningPeakTimeOff = eveningPeakTimeOff;
    }
    public String getOtherPeakTimeOn() {
        return OtherPeakTimeOn;
    }
    public void setOtherPeakTimeOn(String otherPeakTimeOn) {
        OtherPeakTimeOn = otherPeakTimeOn;
    }
    public String getOtherPeakTineOff() {
        return OtherPeakTineOff;
    }
    public void setOtherPeakTineOff(String otherPeakTineOff) {
        OtherPeakTineOff = otherPeakTineOff;
    }
    public Double getPeakUnitPrice() {
        return PeakUnitPrice;
    }
    public void setPeakUnitPrice(Double peakUnitPrice) {
        PeakUnitPrice = peakUnitPrice;
    }
    public Integer getPeakPriceStartMile() {
        return PeakPriceStartMile;
    }
    public void setPeakPriceStartMile(Integer peakPriceStartMile) {
        PeakPriceStartMile = peakPriceStartMile;
    }
    public Double getLowSpeedPriceMinute() {
        return LowSpeedPriceMinute;
    }
    public void setLowSpeedPriceMinute(Double lowSpeedPriceMinute) {
        LowSpeedPriceMinute = lowSpeedPriceMinute;
    }
    public Double getNightPricePerMile() {
        return NightPricePerMile;
    }
    public void setNightPricePerMile(Double nightPricePerMile) {
        NightPricePerMile = nightPricePerMile;
    }
    public Double getNightPricePerMinute() {
        return NightPricePerMinute;
    }
    public void setNightPricePerMinute(Double nightPricePerMinute) {
        NightPricePerMinute = nightPricePerMinute;
    }
    public Double getOtherPrice() {
        return OtherPrice;
    }
    public void setOtherPrice(Double otherPrice) {
        OtherPrice = otherPrice;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompanyFare{" +
                "Address=" + Address +
                ", FareType='" + FareType + '\'' +
                ", FareTypeNote='" + FareTypeNote + '\'' +
                ", FareValidOn=" + FareValidOn +
                ", FareValidOff=" + FareValidOff +
                ", StartFare=" + StartFare +
                ", StartMile=" + StartMile +
                ", UnitPricePerMile=" + UnitPricePerMile +
                ", UnitPricePerMinute=" + UnitPricePerMinute +
                ", UpPrice=" + UpPrice +
                ", UpPriceStartMile=" + UpPriceStartMile +
                ", MorningPeakTimeOn='" + MorningPeakTimeOn + '\'' +
                ", MorningPeakTimeOff='" + MorningPeakTimeOff + '\'' +
                ", EveningPeakTimeOn='" + EveningPeakTimeOn + '\'' +
                ", EveningPeakTimeOff='" + EveningPeakTimeOff + '\'' +
                ", OtherPeakTimeOn='" + OtherPeakTimeOn + '\'' +
                ", OtherPeakTineOff='" + OtherPeakTineOff + '\'' +
                ", PeakUnitPrice=" + PeakUnitPrice +
                ", PeakPriceStartMile=" + PeakPriceStartMile +
                ", LowSpeedPriceMinute=" + LowSpeedPriceMinute +
                ", NightPricePerMile=" + NightPricePerMile +
                ", NightPricePerMinute=" + NightPricePerMinute +
                ", OtherPrice=" + OtherPrice +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyPay.java
New file
@@ -0,0 +1,132 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车平台公司支付信息
 */
public class BaseInfoCompanyPay {
    /**
     * 银行或者非银行支付机构名称
     */
    private String PayName;
    /**
     * 非银行支付机构支付业务许可证编号
     */
    private String PayId;
    /**
     * 支付业务类型
     */
    private String PayType;
    /**
     * 业务覆盖范围
     */
    private String PayScope;
    /**
     * 备付金存管银行
     */
    private String PrepareBank;
    /**
     * 结算周期
     */
    private Integer CountDate;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public String getPayName() {
        return PayName;
    }
    public void setPayName(String payName) {
        PayName = payName;
    }
    public String getPayId() {
        return PayId;
    }
    public void setPayId(String payId) {
        PayId = payId;
    }
    public String getPayType() {
        return PayType;
    }
    public void setPayType(String payType) {
        PayType = payType;
    }
    public String getPayScope() {
        return PayScope;
    }
    public void setPayScope(String payScope) {
        PayScope = payScope;
    }
    public String getPrepareBank() {
        return PrepareBank;
    }
    public void setPrepareBank(String prepareBank) {
        PrepareBank = prepareBank;
    }
    public Integer getCountDate() {
        return CountDate;
    }
    public void setCountDate(Integer countDate) {
        CountDate = countDate;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompanyPay{" +
                "PayName='" + PayName + '\'' +
                ", PayId='" + PayId + '\'' +
                ", PayType='" + PayType + '\'' +
                ", PayScope='" + PayScope + '\'' +
                ", PrepareBank='" + PrepareBank + '\'' +
                ", CountDate=" + CountDate +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyPermit.java
New file
@@ -0,0 +1,158 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车平台公司经营许可
 */
public class BaseInfoCompanyPermit {
    /**
     * 许可地行政区划代码
     */
    private Integer Address;
    /**
     * 网络预约出租车经营许可证号
     */
    private String Certificate;
    /**
     * 经营区域
     */
    private String OperationArea;
    /**
     * 公司名称
     */
    private String OwnerName;
    /**
     * 发证机构名称
     */
    private String Organization;
    /**
     * 有效期起
     */
    private Date StartDate;
    /**
     * 有效期止
     */
    private Date StopDate;
    /**
     * 初次发证日期
     */
    private Date CertifyDate;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getCertificate() {
        return Certificate;
    }
    public void setCertificate(String certificate) {
        Certificate = certificate;
    }
    public String getOperationArea() {
        return OperationArea;
    }
    public void setOperationArea(String operationArea) {
        OperationArea = operationArea;
    }
    public String getOwnerName() {
        return OwnerName;
    }
    public void setOwnerName(String ownerName) {
        OwnerName = ownerName;
    }
    public String getOrganization() {
        return Organization;
    }
    public void setOrganization(String organization) {
        Organization = organization;
    }
    public Date getStartDate() {
        return StartDate;
    }
    public void setStartDate(Date startDate) {
        StartDate = startDate;
    }
    public Date getStopDate() {
        return StopDate;
    }
    public void setStopDate(Date stopDate) {
        StopDate = stopDate;
    }
    public Date getCertifyDate() {
        return CertifyDate;
    }
    public void setCertifyDate(Date certifyDate) {
        CertifyDate = certifyDate;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompanyPermit{" +
                "Address=" + Address +
                ", Certificate='" + Certificate + '\'' +
                ", OperationArea='" + OperationArea + '\'' +
                ", OwnerName='" + OwnerName + '\'' +
                ", Organization='" + Organization + '\'' +
                ", StartDate=" + StartDate +
                ", StopDate=" + StopDate +
                ", CertifyDate=" + CertifyDate +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyService.java
New file
@@ -0,0 +1,197 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车平台公司服务机构
 */
public class BaseInfoCompanyService {
    /**
     * 行政区划代码
     */
    private Integer Address;
    /**
     * 服务机构名称
     */
    private String ServiceName;
    /**
     * 服务机构代码
     */
    private String ServiceNo;
    /**
     * 服务机构地址
     */
    private String DetailAddress;
    /**
     * 服务机构负责人姓名
     */
    private String ResponsibleName;
    /**
     * 负责人联系电话
     */
    private String ResponsiblePhone;
    /**
     * 服务机构管理人姓名
     */
    private String ManagerName;
    /**
     * 管理人联系电话
     */
    private String ManagerPhone;
    /**
     * 服务机构紧急联系电话
     */
    private String ContactPhone;
    /**
     * 行政文书送达邮寄地址
     */
    private String MailAddress;
    /**
     * 服务机构设立日期
     */
    private Date CreateDate;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getServiceName() {
        return ServiceName;
    }
    public void setServiceName(String serviceName) {
        ServiceName = serviceName;
    }
    public String getServiceNo() {
        return ServiceNo;
    }
    public void setServiceNo(String serviceNo) {
        ServiceNo = serviceNo;
    }
    public String getDetailAddress() {
        return DetailAddress;
    }
    public void setDetailAddress(String detailAddress) {
        DetailAddress = detailAddress;
    }
    public String getResponsibleName() {
        return ResponsibleName;
    }
    public void setResponsibleName(String responsibleName) {
        ResponsibleName = responsibleName;
    }
    public String getResponsiblePhone() {
        return ResponsiblePhone;
    }
    public void setResponsiblePhone(String responsiblePhone) {
        ResponsiblePhone = responsiblePhone;
    }
    public String getManagerName() {
        return ManagerName;
    }
    public void setManagerName(String managerName) {
        ManagerName = managerName;
    }
    public String getManagerPhone() {
        return ManagerPhone;
    }
    public void setManagerPhone(String managerPhone) {
        ManagerPhone = managerPhone;
    }
    public String getContactPhone() {
        return ContactPhone;
    }
    public void setContactPhone(String contactPhone) {
        ContactPhone = contactPhone;
    }
    public String getMailAddress() {
        return MailAddress;
    }
    public void setMailAddress(String mailAddress) {
        MailAddress = mailAddress;
    }
    public Date getCreateDate() {
        return CreateDate;
    }
    public void setCreateDate(Date createDate) {
        CreateDate = createDate;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompanyService{" +
                "Address=" + Address +
                ", ServiceName='" + ServiceName + '\'' +
                ", ServiceNo='" + ServiceNo + '\'' +
                ", DetailAddress='" + DetailAddress + '\'' +
                ", ResponsibleName='" + ResponsibleName + '\'' +
                ", ResponsiblePhone='" + ResponsiblePhone + '\'' +
                ", ManagerName='" + ManagerName + '\'' +
                ", ManagerPhone='" + ManagerPhone + '\'' +
                ", ContactPhone='" + ContactPhone + '\'' +
                ", MailAddress='" + MailAddress + '\'' +
                ", CreateDate=" + CreateDate +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoCompanyStat.java
New file
@@ -0,0 +1,67 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车平台公司营运规模信息
 */
public class BaseInfoCompanyStat {
    /**
     * 平台注册网约车辆数
     */
    private Integer VehicleNum;
    /**
     * 平台注册驾驶员数
     */
    private Integer DriverNum;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getVehicleNum() {
        return VehicleNum;
    }
    public void setVehicleNum(Integer vehicleNum) {
        VehicleNum = vehicleNum;
    }
    public Integer getDriverNum() {
        return DriverNum;
    }
    public void setDriverNum(Integer driverNum) {
        DriverNum = driverNum;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoCompanyStat{" +
                "VehicleNum=" + VehicleNum +
                ", DriverNum=" + DriverNum +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriver.java
New file
@@ -0,0 +1,535 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 驾驶员基本信息
 */
public class BaseInfoDriver {
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 机动车驾驶员姓名
     */
    private String DriverName;
    /**
     * 驾驶员手机号
     */
    private String DriverPhone;
    /**
     * 驾驶员性别
     */
    private String DriverGender;
    /**
     * 出生日期
     */
    private Date DriverBirthday;
    /**
     * 国籍
     */
    private String DriverNationality;
    /**
     * 驾驶员民族(见 JT/T 697.7-2014中4.1.2.1.7)
     */
    private String DriverNation;
    /**
     * 驾驶员婚姻状况(未婚,已婚,离异)
     */
    private String DriverMaritalStatus;
    /**
     * 驾驶员外语能力
     */
    private String DriverLanguageLevel;
    /**
     * 驾驶员学历(见 JT/T 697.7-2014中4.1.2.1.11)
     */
    private String DriverEducation;
    /**
     * 户口登记机关名称
     */
    private String DriverCensus;
    /**
     * 户口住址或长住地址
     */
    private String DriverAddress;
    /**
     * 驾驶员通信地址
     */
    private String DriverContactAddress;
    /**
     * 驾驶员照片文件编号
     */
    private String PhotoId;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 机动车驾驶证扫描件文件编号
     */
    private String LicensePhotoId;
    /**
     * 准驾车型(见 JT/T 697.7-2014中5.16)
     */
    private String DriverType;
    /**
     * 初次领取驾驶证日期
     */
    private Date GetDriverLicenseDate;
    /**
     * 驾驶证有效期限起
     */
    private Date DriverLicenseOn;
    /**
     * 驾驶证有效期限止
     */
    private Date DriverLicenseOff;
    /**
     * 是否巡游出租汽车驾驶员(1:是,2:否)
     */
    private Integer TaxiDriver;
    /**
     * 网络预约出租汽车驾驶员资格证号
     */
    private String CertificateNo;
    /**
     * 网络预约出租汽车驾驶员证发证机构
     */
    private String NetworkCarIssueOrganization;
    /**
     * 资格证发证日期
     */
    private Date NetworkCarIssueDate;
    /**
     * 初次领取资格证日期
     */
    private Date GetNetworkCarProofDate;
    /**
     * 资格证有效起始日期
     */
    private Date NetworkCarProofOn;
    /**
     * 资格证有截止日期
     */
    private Date NetworkCarProofOff;
    /**
     * 报备日期(驾驶员信息向服务所在地出租车行政主管部门报备日期)
     */
    private Date RegisterDate;
    /**
     * 是否专职驾驶员(1:是,0:否)
     */
    private Integer FullTimeDriver;
    /**
     * 是否在驾驶员黑名单内(1:是,0:否)
     */
    private Integer InDriverBlacklist;
    /**
     * 服务类型(1:网络预约出租汽车,2:巡游出租汽车,3:私人小客车合乘)
     */
    private Integer CommercialType;
    /**
     * 驾驶员合同签署公司
     */
    private String ContractCompany;
    /**
     * 合同有效期起
     */
    private Date ContractOn;
    /**
     * 合同有效期止
     */
    private Date ContractOff;
    /**
     * 紧急情况联系人
     */
    private String EmergencyContact;
    /**
     * 紧急情况联系人电话
     */
    private String EmergencyContactPhone;
    /**
     * 紧急情况联系人通信地址
     */
    private String EmergencyContactAddress;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getDriverName() {
        return DriverName;
    }
    public void setDriverName(String driverName) {
        DriverName = driverName;
    }
    public String getDriverPhone() {
        return DriverPhone;
    }
    public void setDriverPhone(String driverPhone) {
        DriverPhone = driverPhone;
    }
    public String getDriverGender() {
        return DriverGender;
    }
    public void setDriverGender(String driverGender) {
        DriverGender = driverGender;
    }
    public Date getDriverBirthday() {
        return DriverBirthday;
    }
    public void setDriverBirthday(Date driverBirthday) {
        DriverBirthday = driverBirthday;
    }
    public String getDriverNationality() {
        return DriverNationality;
    }
    public void setDriverNationality(String driverNationality) {
        DriverNationality = driverNationality;
    }
    public String getDriverNation() {
        return DriverNation;
    }
    public void setDriverNation(String driverNation) {
        DriverNation = driverNation;
    }
    public String getDriverMaritalStatus() {
        return DriverMaritalStatus;
    }
    public void setDriverMaritalStatus(String driverMaritalStatus) {
        DriverMaritalStatus = driverMaritalStatus;
    }
    public String getDriverLanguageLevel() {
        return DriverLanguageLevel;
    }
    public void setDriverLanguageLevel(String driverLanguageLevel) {
        DriverLanguageLevel = driverLanguageLevel;
    }
    public String getDriverEducation() {
        return DriverEducation;
    }
    public void setDriverEducation(String driverEducation) {
        DriverEducation = driverEducation;
    }
    public String getDriverCensus() {
        return DriverCensus;
    }
    public void setDriverCensus(String driverCensus) {
        DriverCensus = driverCensus;
    }
    public String getDriverAddress() {
        return DriverAddress;
    }
    public void setDriverAddress(String driverAddress) {
        DriverAddress = driverAddress;
    }
    public String getDriverContactAddress() {
        return DriverContactAddress;
    }
    public void setDriverContactAddress(String driverContactAddress) {
        DriverContactAddress = driverContactAddress;
    }
    public String getPhotoId() {
        return PhotoId;
    }
    public void setPhotoId(String photoId) {
        PhotoId = photoId;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getLicensePhotoId() {
        return LicensePhotoId;
    }
    public void setLicensePhotoId(String licensePhotoId) {
        LicensePhotoId = licensePhotoId;
    }
    public String getDriverType() {
        return DriverType;
    }
    public void setDriverType(String driverType) {
        DriverType = driverType;
    }
    public Date getGetDriverLicenseDate() {
        return GetDriverLicenseDate;
    }
    public void setGetDriverLicenseDate(Date getDriverLicenseDate) {
        GetDriverLicenseDate = getDriverLicenseDate;
    }
    public Date getDriverLicenseOn() {
        return DriverLicenseOn;
    }
    public void setDriverLicenseOn(Date driverLicenseOn) {
        DriverLicenseOn = driverLicenseOn;
    }
    public Date getDriverLicenseOff() {
        return DriverLicenseOff;
    }
    public void setDriverLicenseOff(Date driverLicenseOff) {
        DriverLicenseOff = driverLicenseOff;
    }
    public Integer getTaxiDriver() {
        return TaxiDriver;
    }
    public void setTaxiDriver(Integer taxiDriver) {
        TaxiDriver = taxiDriver;
    }
    public String getCertificateNo() {
        return CertificateNo;
    }
    public void setCertificateNo(String certificateNo) {
        CertificateNo = certificateNo;
    }
    public String getNetworkCarIssueOrganization() {
        return NetworkCarIssueOrganization;
    }
    public void setNetworkCarIssueOrganization(String networkCarIssueOrganization) {
        NetworkCarIssueOrganization = networkCarIssueOrganization;
    }
    public Date getNetworkCarIssueDate() {
        return NetworkCarIssueDate;
    }
    public void setNetworkCarIssueDate(Date networkCarIssueDate) {
        NetworkCarIssueDate = networkCarIssueDate;
    }
    public Date getGetNetworkCarProofDate() {
        return GetNetworkCarProofDate;
    }
    public void setGetNetworkCarProofDate(Date getNetworkCarProofDate) {
        GetNetworkCarProofDate = getNetworkCarProofDate;
    }
    public Date getNetworkCarProofOn() {
        return NetworkCarProofOn;
    }
    public void setNetworkCarProofOn(Date networkCarProofOn) {
        NetworkCarProofOn = networkCarProofOn;
    }
    public Date getNetworkCarProofOff() {
        return NetworkCarProofOff;
    }
    public void setNetworkCarProofOff(Date networkCarProofOff) {
        NetworkCarProofOff = networkCarProofOff;
    }
    public Date getRegisterDate() {
        return RegisterDate;
    }
    public void setRegisterDate(Date registerDate) {
        RegisterDate = registerDate;
    }
    public Integer getFullTimeDriver() {
        return FullTimeDriver;
    }
    public void setFullTimeDriver(Integer fullTimeDriver) {
        FullTimeDriver = fullTimeDriver;
    }
    public Integer getInDriverBlacklist() {
        return InDriverBlacklist;
    }
    public void setInDriverBlacklist(Integer inDriverBlacklist) {
        InDriverBlacklist = inDriverBlacklist;
    }
    public Integer getCommercialType() {
        return CommercialType;
    }
    public void setCommercialType(Integer commercialType) {
        CommercialType = commercialType;
    }
    public String getContractCompany() {
        return ContractCompany;
    }
    public void setContractCompany(String contractCompany) {
        ContractCompany = contractCompany;
    }
    public Date getContractOn() {
        return ContractOn;
    }
    public void setContractOn(Date contractOn) {
        ContractOn = contractOn;
    }
    public Date getContractOff() {
        return ContractOff;
    }
    public void setContractOff(Date contractOff) {
        ContractOff = contractOff;
    }
    public String getEmergencyContact() {
        return EmergencyContact;
    }
    public void setEmergencyContact(String emergencyContact) {
        EmergencyContact = emergencyContact;
    }
    public String getEmergencyContactPhone() {
        return EmergencyContactPhone;
    }
    public void setEmergencyContactPhone(String emergencyContactPhone) {
        EmergencyContactPhone = emergencyContactPhone;
    }
    public String getEmergencyContactAddress() {
        return EmergencyContactAddress;
    }
    public void setEmergencyContactAddress(String emergencyContactAddress) {
        EmergencyContactAddress = emergencyContactAddress;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoDriver{" +
                "Address=" + Address +
                ", DriverName='" + DriverName + '\'' +
                ", DriverPhone='" + DriverPhone + '\'' +
                ", DriverGender='" + DriverGender + '\'' +
                ", DriverBirthday=" + DriverBirthday +
                ", DriverNationality='" + DriverNationality + '\'' +
                ", DriverNation='" + DriverNation + '\'' +
                ", DriverMaritalStatus='" + DriverMaritalStatus + '\'' +
                ", DriverLanguageLevel='" + DriverLanguageLevel + '\'' +
                ", DriverEducation='" + DriverEducation + '\'' +
                ", DriverCensus='" + DriverCensus + '\'' +
                ", DriverAddress='" + DriverAddress + '\'' +
                ", DriverContactAddress='" + DriverContactAddress + '\'' +
                ", PhotoId='" + PhotoId + '\'' +
                ", LicenseId='" + LicenseId + '\'' +
                ", LicensePhotoId='" + LicensePhotoId + '\'' +
                ", DriverType='" + DriverType + '\'' +
                ", GetDriverLicenseDate=" + GetDriverLicenseDate +
                ", DriverLicenseOn=" + DriverLicenseOn +
                ", DriverLicenseOff=" + DriverLicenseOff +
                ", TaxiDriver=" + TaxiDriver +
                ", CertificateNo='" + CertificateNo + '\'' +
                ", NetworkCarIssueOrganization='" + NetworkCarIssueOrganization + '\'' +
                ", NetworkCarIssueDate=" + NetworkCarIssueDate +
                ", GetNetworkCarProofDate=" + GetNetworkCarProofDate +
                ", NetworkCarProofOn=" + NetworkCarProofOn +
                ", NetworkCarProofOff=" + NetworkCarProofOff +
                ", RegisterDate=" + RegisterDate +
                ", FullTimeDriver=" + FullTimeDriver +
                ", InDriverBlacklist=" + InDriverBlacklist +
                ", CommercialType=" + CommercialType +
                ", ContractCompany='" + ContractCompany + '\'' +
                ", ContractOn=" + ContractOn +
                ", ContractOff=" + ContractOff +
                ", EmergencyContact='" + EmergencyContact + '\'' +
                ", EmergencyContactPhone='" + EmergencyContactPhone + '\'' +
                ", EmergencyContactAddress='" + EmergencyContactAddress + '\'' +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverApp.java
New file
@@ -0,0 +1,132 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 驾驶员移动终端信息
 */
public class BaseInfoDriverApp {
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 驾驶员手机号
     */
    private String DriverPhone;
    /**
     * 手机运营商(1:中国联通,2:中国移动,3:中国电信,4:其他)
     */
    private Integer NetType;
    /**
     * 使用APP版本号
     */
    private String AppVersion;
    /**
     * 使用地图类型(1:百度地图,2:高德地图,3:其他)
     */
    private Integer MapType;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getDriverPhone() {
        return DriverPhone;
    }
    public void setDriverPhone(String driverPhone) {
        DriverPhone = driverPhone;
    }
    public Integer getNetType() {
        return NetType;
    }
    public void setNetType(Integer netType) {
        NetType = netType;
    }
    public String getAppVersion() {
        return AppVersion;
    }
    public void setAppVersion(String appVersion) {
        AppVersion = appVersion;
    }
    public Integer getMapType() {
        return MapType;
    }
    public void setMapType(Integer mapType) {
        MapType = mapType;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoDriverApp{" +
                "Address=" + Address +
                ", LicenseId='" + LicenseId + '\'' +
                ", DriverPhone='" + DriverPhone + '\'' +
                ", NetType=" + NetType +
                ", AppVersion='" + AppVersion + '\'' +
                ", MapType=" + MapType +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverEducate.java
New file
@@ -0,0 +1,132 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车驾驶员培训信息
 */
public class BaseInfoDriverEducate {
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 驾驶员培训课程名称
     */
    private String CourseName;
    /**
     * 培训课程日期
     */
    private Date CourseDate;
    /**
     * 培训开始时间
     */
    private String StartTime;
    /**
     * 培训结束时间
     */
    private String StopTime;
    /**
     * 培训时长
     */
    private Integer Duration;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getCourseName() {
        return CourseName;
    }
    public void setCourseName(String courseName) {
        CourseName = courseName;
    }
    public Date getCourseDate() {
        return CourseDate;
    }
    public void setCourseDate(Date courseDate) {
        CourseDate = courseDate;
    }
    public String getStartTime() {
        return StartTime;
    }
    public void setStartTime(String startTime) {
        StartTime = startTime;
    }
    public String getStopTime() {
        return StopTime;
    }
    public void setStopTime(String stopTime) {
        StopTime = stopTime;
    }
    public Integer getDuration() {
        return Duration;
    }
    public void setDuration(Integer duration) {
        Duration = duration;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoDriverEducate{" +
                "Address=" + Address +
                ", LicenseId='" + LicenseId + '\'' +
                ", CourseName='" + CourseName + '\'' +
                ", CourseDate=" + CourseDate +
                ", StartTime='" + StartTime + '\'' +
                ", StopTime='" + StopTime + '\'' +
                ", Duration=" + Duration +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoDriverStat.java
New file
@@ -0,0 +1,119 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 驾驶员统计信息
 */
public class BaseInfoDriverStat {
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 统计周期(统计周期按月,内容填写统计月份)
     */
    private Date Cycle;
    /**
     * 完成订单次数
     */
    private Integer OrderCount;
    /**
     * 交通违章次数
     */
    private Integer TrafficViolationCount;
    /**
     * 被投诉次数
     */
    private Integer ComplainedCount;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public Date getCycle() {
        return Cycle;
    }
    public void setCycle(Date cycle) {
        Cycle = cycle;
    }
    public Integer getOrderCount() {
        return OrderCount;
    }
    public void setOrderCount(Integer orderCount) {
        OrderCount = orderCount;
    }
    public Integer getTrafficViolationCount() {
        return TrafficViolationCount;
    }
    public void setTrafficViolationCount(Integer trafficViolationCount) {
        TrafficViolationCount = trafficViolationCount;
    }
    public Integer getComplainedCount() {
        return ComplainedCount;
    }
    public void setComplainedCount(Integer complainedCount) {
        ComplainedCount = complainedCount;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoDriverStat{" +
                "Address=" + Address +
                ", LicenseId='" + LicenseId + '\'' +
                ", Cycle=" + Cycle +
                ", OrderCount=" + OrderCount +
                ", TrafficViolationCount=" + TrafficViolationCount +
                ", ComplainedCount=" + ComplainedCount +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoPassenger.java
New file
@@ -0,0 +1,106 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 乘客基本信息
 */
public class BaseInfoPassenger {
    /**
     * 注册日期
     */
    private Date RegisterDate;
    /**
     * 乘客手机号
     */
    private String PassengerPhone;
    /**
     * 乘客称谓
     */
    private String PassengerName;
    /**
     * 乘客性别
     */
    private String PassengerGender;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Date getRegisterDate() {
        return RegisterDate;
    }
    public void setRegisterDate(Date registerDate) {
        RegisterDate = registerDate;
    }
    public String getPassengerPhone() {
        return PassengerPhone;
    }
    public void setPassengerPhone(String passengerPhone) {
        PassengerPhone = passengerPhone;
    }
    public String getPassengerName() {
        return PassengerName;
    }
    public void setPassengerName(String passengerName) {
        PassengerName = passengerName;
    }
    public String getPassengerGender() {
        return PassengerGender;
    }
    public void setPassengerGender(String passengerGender) {
        PassengerGender = passengerGender;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoPassenger{" +
                "RegisterDate=" + RegisterDate +
                ", PassengerPhone='" + PassengerPhone + '\'' +
                ", PassengerName='" + PassengerName + '\'' +
                ", PassengerGender='" + PassengerGender + '\'' +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicle.java
New file
@@ -0,0 +1,471 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 车辆基本信息
 */
public class BaseInfoVehicle {
    /**
     * 车辆所在城市行政区划代码
     */
    private Integer Address;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 车牌颜色
     */
    private String PlateColor;
    /**
     * 核定载客位
     */
    private Integer Seats;
    /**
     * 车辆厂牌
     */
    private String Brand;
    /**
     * 车辆型号
     */
    private String Model;
    /**
     * 车辆类型(以机动车行驶证为准)
     */
    private String VehicleType;
    /**
     * 车辆所有人(以机动车行驶证为准)
     */
    private String OwnerName;
    /**
     * 车身颜色
     */
    private String VehicleColor;
    /**
     * 发送机号(以机动车行驶证为准)
     */
    private String EngineId;
    /**
     * 车辆VIN码(以机动车行驶证为准)
     */
    private String VIN;
    /**
     * 车辆注册日期(以机动车行驶证为准)
     */
    private Date CertifyDateA;
    /**
     * 车辆燃料类型(见 JT/T697.7-2014中4.1.4.15)
     */
    private String FuelType;
    /**
     * 发送机排量(毫升)
     */
    private String EngineDisplace;
    /**
     * 车辆照片文件编号
     */
    private String PhotoId;
    /**
     * 运输证字号(见 JT/T 415-2006中5.4.4,地市字别可包含三个汉字)
     */
    private String Certificate;
    /**
     * 车辆运输证发证机构
     */
    private String TransAgency;
    /**
     * 车辆经营区域
     */
    private String TransArea;
    /**
     * 车辆运输证有效期起
     */
    private Date TransDateStart;
    /**
     * 车辆运输证有效期止
     */
    private Date TransDateStop;
    /**
     * 车辆初次登记日期
     */
    private Date CertifyDateB;
    /**
     * 车辆维修状态(0:未检修,1:已检修,2:未知)
     */
    private String FixState;
    /**
     * 车辆下次年检时间
     */
    private Date NextFixDate;
    /**
     * 车辆年度审验状态(见 JT/T 514-2006中5.4.4)
     */
    private String CheckState;
    /**
     * 发票打印设备序列号
     */
    private String FeePrintId;
    /**
     * 卫星定位装置品牌
     */
    private String GPSBrand;
    /**
     * 卫星定位装置型号
     */
    private String GPSModel;
    /**
     * 卫星定位装置IMEI号
     */
    private String GPSIMEI;
    /**
     * 卫星定位设备安装日期
     */
    private Date GPSInstallDate;
    /**
     * 报备日期(车辆信息向服务所在地出租车行政主管部门报备日期)
     */
    private Date RegisterDate;
    /**
     * 服务类型(1:网络预约出租车,2:巡游出租汽车,3:私人小客车合乘)
     */
    private Integer CommercialType;
    /**
     * 运价类型编码(与云间信息中一一对应)
     */
    private String FareType;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public String getPlateColor() {
        return PlateColor;
    }
    public void setPlateColor(String plateColor) {
        PlateColor = plateColor;
    }
    public Integer getSeats() {
        return Seats;
    }
    public void setSeats(Integer seats) {
        Seats = seats;
    }
    public String getBrand() {
        return Brand;
    }
    public void setBrand(String brand) {
        Brand = brand;
    }
    public String getModel() {
        return Model;
    }
    public void setModel(String model) {
        Model = model;
    }
    public String getVehicleType() {
        return VehicleType;
    }
    public void setVehicleType(String vehicleType) {
        VehicleType = vehicleType;
    }
    public String getOwnerName() {
        return OwnerName;
    }
    public void setOwnerName(String ownerName) {
        OwnerName = ownerName;
    }
    public String getVehicleColor() {
        return VehicleColor;
    }
    public void setVehicleColor(String vehicleColor) {
        VehicleColor = vehicleColor;
    }
    public String getEngineId() {
        return EngineId;
    }
    public void setEngineId(String engineId) {
        EngineId = engineId;
    }
    public String getVIN() {
        return VIN;
    }
    public void setVIN(String VIN) {
        this.VIN = VIN;
    }
    public Date getCertifyDateA() {
        return CertifyDateA;
    }
    public void setCertifyDateA(Date certifyDateA) {
        CertifyDateA = certifyDateA;
    }
    public String getFuelType() {
        return FuelType;
    }
    public void setFuelType(String fuelType) {
        FuelType = fuelType;
    }
    public String getEngineDisplace() {
        return EngineDisplace;
    }
    public void setEngineDisplace(String engineDisplace) {
        EngineDisplace = engineDisplace;
    }
    public String getPhotoId() {
        return PhotoId;
    }
    public void setPhotoId(String photoId) {
        PhotoId = photoId;
    }
    public String getCertificate() {
        return Certificate;
    }
    public void setCertificate(String certificate) {
        Certificate = certificate;
    }
    public String getTransAgency() {
        return TransAgency;
    }
    public void setTransAgency(String transAgency) {
        TransAgency = transAgency;
    }
    public String getTransArea() {
        return TransArea;
    }
    public void setTransArea(String transArea) {
        TransArea = transArea;
    }
    public Date getTransDateStart() {
        return TransDateStart;
    }
    public void setTransDateStart(Date transDateStart) {
        TransDateStart = transDateStart;
    }
    public Date getTransDateStop() {
        return TransDateStop;
    }
    public void setTransDateStop(Date transDateStop) {
        TransDateStop = transDateStop;
    }
    public Date getCertifyDateB() {
        return CertifyDateB;
    }
    public void setCertifyDateB(Date certifyDateB) {
        CertifyDateB = certifyDateB;
    }
    public String getFixState() {
        return FixState;
    }
    public void setFixState(String fixState) {
        FixState = fixState;
    }
    public Date getNextFixDate() {
        return NextFixDate;
    }
    public void setNextFixDate(Date nextFixDate) {
        NextFixDate = nextFixDate;
    }
    public String getCheckState() {
        return CheckState;
    }
    public void setCheckState(String checkState) {
        CheckState = checkState;
    }
    public String getFeePrintId() {
        return FeePrintId;
    }
    public void setFeePrintId(String feePrintId) {
        FeePrintId = feePrintId;
    }
    public String getGPSBrand() {
        return GPSBrand;
    }
    public void setGPSBrand(String GPSBrand) {
        this.GPSBrand = GPSBrand;
    }
    public String getGPSModel() {
        return GPSModel;
    }
    public void setGPSModel(String GPSModel) {
        this.GPSModel = GPSModel;
    }
    public String getGPSIMEI() {
        return GPSIMEI;
    }
    public void setGPSIMEI(String GPSIMEI) {
        this.GPSIMEI = GPSIMEI;
    }
    public Date getGPSInstallDate() {
        return GPSInstallDate;
    }
    public void setGPSInstallDate(Date GPSInstallDate) {
        this.GPSInstallDate = GPSInstallDate;
    }
    public Date getRegisterDate() {
        return RegisterDate;
    }
    public void setRegisterDate(Date registerDate) {
        RegisterDate = registerDate;
    }
    public Integer getCommercialType() {
        return CommercialType;
    }
    public void setCommercialType(Integer commercialType) {
        CommercialType = commercialType;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoVehicle{" +
                "Address=" + Address +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", PlateColor='" + PlateColor + '\'' +
                ", Seats=" + Seats +
                ", Brand='" + Brand + '\'' +
                ", Model='" + Model + '\'' +
                ", VehicleType='" + VehicleType + '\'' +
                ", OwnerName='" + OwnerName + '\'' +
                ", VehicleColor='" + VehicleColor + '\'' +
                ", EngineId='" + EngineId + '\'' +
                ", VIN='" + VIN + '\'' +
                ", CertifyDateA=" + CertifyDateA +
                ", FuelType='" + FuelType + '\'' +
                ", EngineDisplace='" + EngineDisplace + '\'' +
                ", PhotoId='" + PhotoId + '\'' +
                ", Certificate='" + Certificate + '\'' +
                ", TransAgency='" + TransAgency + '\'' +
                ", TransArea='" + TransArea + '\'' +
                ", TransDateStart=" + TransDateStart +
                ", TransDateStop=" + TransDateStop +
                ", CertifyDateB=" + CertifyDateB +
                ", FixState='" + FixState + '\'' +
                ", NextFixDate=" + NextFixDate +
                ", CheckState='" + CheckState + '\'' +
                ", FeePrintId='" + FeePrintId + '\'' +
                ", GPSBrand='" + GPSBrand + '\'' +
                ", GPSModel='" + GPSModel + '\'' +
                ", GPSIMEI='" + GPSIMEI + '\'' +
                ", GPSInstallDate=" + GPSInstallDate +
                ", RegisterDate=" + RegisterDate +
                ", CommercialType=" + CommercialType +
                ", FareType='" + FareType + '\'' +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicleInsurance.java
New file
@@ -0,0 +1,132 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 车辆保险信息
 */
public class BaseInfoVehicleInsurance {
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 保险公司名称
     */
    private String InsurCom;
    /**
     * 保险号
     */
    private String InsurNum;
    /**
     * 保险类型
     */
    private String InsurType;
    /**
     * 保险金额(元)
     */
    private Double InsurCount;
    /**
     * 保险生效时间
     */
    private Date InsurEff;
    /**
     * 保险到期时间
     */
    private Date InsurExp;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public String getInsurCom() {
        return InsurCom;
    }
    public void setInsurCom(String insurCom) {
        InsurCom = insurCom;
    }
    public String getInsurNum() {
        return InsurNum;
    }
    public void setInsurNum(String insurNum) {
        InsurNum = insurNum;
    }
    public String getInsurType() {
        return InsurType;
    }
    public void setInsurType(String insurType) {
        InsurType = insurType;
    }
    public Double getInsurCount() {
        return InsurCount;
    }
    public void setInsurCount(Double insurCount) {
        InsurCount = insurCount;
    }
    public Date getInsurEff() {
        return InsurEff;
    }
    public void setInsurEff(Date insurEff) {
        InsurEff = insurEff;
    }
    public Date getInsurExp() {
        return InsurExp;
    }
    public void setInsurExp(Date insurExp) {
        InsurExp = insurExp;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoVehicleInsurance{" +
                "VehicleNo='" + VehicleNo + '\'' +
                ", InsurCom='" + InsurCom + '\'' +
                ", InsurNum='" + InsurNum + '\'' +
                ", InsurType='" + InsurType + '\'' +
                ", InsurCount=" + InsurCount +
                ", InsurEff=" + InsurEff +
                ", InsurExp=" + InsurExp +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/BaseInfoVehicleTotalMile.java
New file
@@ -0,0 +1,80 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 网约车车辆里程信息
 */
public class BaseInfoVehicleTotalMile {
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 行驶总里程(km)
     */
    private Integer TotalMile;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Integer getTotalMile() {
        return TotalMile;
    }
    public void setTotalMile(Integer totalMile) {
        TotalMile = totalMile;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "BaseInfoVehicleTotalMile{" +
                "Address=" + Address +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", TotalMile=" + TotalMile +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateArrive.java
New file
@@ -0,0 +1,106 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 经营到达接口
 */
public class OperateArrive {
    /**
     * 订单号
     */
    private String OrderId;
    /**
     * 车辆到达经度
     */
    private Double DestLongitude;
    /**
     * 车辆到达纬度
     */
    private Double DestLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 下车时间
     */
    private Date DestTime;
    /**
     * 载客里程(km)
     */
    private Integer DriveMile;
    /**
     * 载客时间(秒)
     */
    private Integer DriveTime;
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Date getDestTime() {
        return DestTime;
    }
    public void setDestTime(Date destTime) {
        DestTime = destTime;
    }
    public Integer getDriveMile() {
        return DriveMile;
    }
    public void setDriveMile(Integer driveMile) {
        DriveMile = driveMile;
    }
    public Integer getDriveTime() {
        return DriveTime;
    }
    public void setDriveTime(Integer driveTime) {
        DriveTime = driveTime;
    }
    @Override
    public String toString() {
        return "OperateArrive{" +
                "OrderId='" + OrderId + '\'' +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", Encrypt=" + Encrypt +
                ", DestTime=" + DestTime +
                ", DriveMile=" + DriveMile +
                ", DriveTime=" + DriveTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateDepart.java
New file
@@ -0,0 +1,145 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 经营出发接口
 */
public class OperateDepart {
    /**
     * 订单号
     */
    private String OrderId;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 运价类型编码
     */
    private String FareType;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 车辆出发经度
     */
    private Double DepLongitude;
    /**
     * 车辆出发纬度
     */
    private Double DepLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 上车时间
     */
    private Date DepTime;
    /**
     * 空驶里程(km)
     */
    private Integer WaitMile;
    /**
     * 等待时间(秒)
     */
    private Integer WaitTime;
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Date getDepTime() {
        return DepTime;
    }
    public void setDepTime(Date depTime) {
        DepTime = depTime;
    }
    public Integer getWaitMile() {
        return WaitMile;
    }
    public void setWaitMile(Integer waitMile) {
        WaitMile = waitMile;
    }
    public Integer getWaitTime() {
        return WaitTime;
    }
    public void setWaitTime(Integer waitTime) {
        WaitTime = waitTime;
    }
    @Override
    public String toString() {
        return "OperateDepart{" +
                "OrderId='" + OrderId + '\'' +
                ", LicenseId='" + LicenseId + '\'' +
                ", FareType='" + FareType + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", Encrypt=" + Encrypt +
                ", DepTime=" + DepTime +
                ", WaitMile=" + WaitMile +
                ", WaitTime=" + WaitTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateLogin.java
New file
@@ -0,0 +1,93 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 车辆经营上线接口
 */
public class OperateLogin {
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 车辆经营上线时间
     */
    private Date LoginTime;
    /**
     * 上线经度
     */
    private Double Longitude;
    /**
     * 上线纬度
     */
    private Double Latitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Date getLoginTime() {
        return LoginTime;
    }
    public void setLoginTime(Date loginTime) {
        LoginTime = loginTime;
    }
    public Double getLongitude() {
        return Longitude;
    }
    public void setLongitude(Double longitude) {
        Longitude = longitude;
    }
    public Double getLatitude() {
        return Latitude;
    }
    public void setLatitude(Double latitude) {
        Latitude = latitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    @Override
    public String toString() {
        return "OperateLogin{" +
                "LicenseId='" + LicenseId + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", LoginTime=" + LoginTime +
                ", Longitude=" + Longitude +
                ", Latitude=" + Latitude +
                ", Encrypt=" + Encrypt +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperateLogout.java
New file
@@ -0,0 +1,93 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 车辆经营下线接口
 */
public class OperateLogout {
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 车辆经营下线时间
     */
    private Date LogoutTime;
    /**
     * 下线经度
     */
    private Double Longitude;
    /**
     * 下线纬度
     */
    private Double Latitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Date getLogoutTime() {
        return LogoutTime;
    }
    public void setLogoutTime(Date logoutTime) {
        LogoutTime = logoutTime;
    }
    public Double getLongitude() {
        return Longitude;
    }
    public void setLongitude(Double longitude) {
        Longitude = longitude;
    }
    public Double getLatitude() {
        return Latitude;
    }
    public void setLatitude(Double latitude) {
        Latitude = latitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    @Override
    public String toString() {
        return "OperateLogout{" +
                "LicenseId='" + LicenseId + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", LogoutTime=" + LogoutTime +
                ", Longitude=" + Longitude +
                ", Latitude=" + Latitude +
                ", Encrypt=" + Encrypt +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OperatePay.java
New file
@@ -0,0 +1,522 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 经营支付接口
 */
public class OperatePay {
    /**
     * 订单号
     */
    private String OrderId;
    /**
     * 上车位置行政区划代码
     */
    private Integer OnArea;
    /**
     * 机动车驾驶员
     */
    private String DriverName;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 运价类型编码(由网约车公司定义,与运价信息接口保持一致)
     */
    private String FareType;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 预计上车时间
     */
    private Date BookDepTime;
    /**
     * 等待时间(秒)
     */
    private Integer WaitTime;
    /**
     * 车辆出发经度
     */
    private Double DepLongitude;
    /**
     * 车辆出发纬度
     */
    private Double DepLatitude;
    /**
     * 上车点
     */
    private String DepArea;
    /**
     * 上车时间
     */
    private Date DepTime;
    /**
     * 车辆到达经度
     */
    private Double DestLongitude;
    /**
     * 车辆到达纬度
     */
    private Double DestLatitude;
    /**
     * 下车地点
     */
    private String DestArea;
    /**
     * 下车时间
     */
    private Date DestTime;
    /**
     * 预定车型
     */
    private String BookModel;
    /**
     * 实际使用车型
     */
    private String Model;
    /**
     * 载客里程(km)
     */
    private Integer DriveMile;
    /**
     * 载客时间(秒)
     */
    private Integer DriveTime;
    /**
     * 空驶里程(km)
     */
    private Integer WaitMile;
    /**
     * 实收金额(元)
     */
    private Double FactPrice;
    /**
     * 应收金额(元)
     */
    private Double Price;
    /**
     * 现金支付金额(元)
     */
    private Double CashPrice;
    /**
     * 电子支付机构
     */
    private String LineName;
    /**
     * 电子支付金额(元)
     */
    private Double LinePrice;
    /**
     * POS机支付机构
     */
    private String PosName;
    /**
     * POS机支付金额(元)
     */
    private Double PosPrice;
    /**
     * 优惠金额(元)
     */
    private Double BenfitPrice;
    /**
     * 预约服务费(元)
     */
    private Double BookTip;
    /**
     * 附加费(元)
     */
    private Double PassengerTip;
    /**
     * 高峰时段时间加价金额(元)
     */
    private Double PeakUpPrice;
    /**
     * 夜间时段里程加价金额(元)
     */
    private Double NightUpPrice;
    /**
     * 远途加价金额(元)
     */
    private Double FarUpPrice;
    /**
     * 其他加价金额(元)
     */
    private Double OtherUpPrice;
    /**
     * 结算状态(0:未结算,1:已结算,2:未知)
     */
    private String PayState;
    /**
     * 乘客结算时间
     */
    private Date PayTime;
    /**
     * 订单完成时间
     */
    private Date OrderMatchTime;
    /**
     * 发票状态(0:未开票,1:已开票,2:未知)
     */
    private String InvoiceStatus;
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Integer getOnArea() {
        return OnArea;
    }
    public void setOnArea(Integer onArea) {
        OnArea = onArea;
    }
    public String getDriverName() {
        return DriverName;
    }
    public void setDriverName(String driverName) {
        DriverName = driverName;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Date getBookDepTime() {
        return BookDepTime;
    }
    public void setBookDepTime(Date bookDepTime) {
        BookDepTime = bookDepTime;
    }
    public Integer getWaitTime() {
        return WaitTime;
    }
    public void setWaitTime(Integer waitTime) {
        WaitTime = waitTime;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public String getDepArea() {
        return DepArea;
    }
    public void setDepArea(String depArea) {
        DepArea = depArea;
    }
    public Date getDepTime() {
        return DepTime;
    }
    public void setDepTime(Date depTime) {
        DepTime = depTime;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public String getDestArea() {
        return DestArea;
    }
    public void setDestArea(String destArea) {
        DestArea = destArea;
    }
    public Date getDestTime() {
        return DestTime;
    }
    public void setDestTime(Date destTime) {
        DestTime = destTime;
    }
    public String getBookModel() {
        return BookModel;
    }
    public void setBookModel(String bookModel) {
        BookModel = bookModel;
    }
    public String getModel() {
        return Model;
    }
    public void setModel(String model) {
        Model = model;
    }
    public Integer getDriveMile() {
        return DriveMile;
    }
    public void setDriveMile(Integer driveMile) {
        DriveMile = driveMile;
    }
    public Integer getDriveTime() {
        return DriveTime;
    }
    public void setDriveTime(Integer driveTime) {
        DriveTime = driveTime;
    }
    public Integer getWaitMile() {
        return WaitMile;
    }
    public void setWaitMile(Integer waitMile) {
        WaitMile = waitMile;
    }
    public Double getFactPrice() {
        return FactPrice;
    }
    public void setFactPrice(Double factPrice) {
        FactPrice = factPrice;
    }
    public Double getPrice() {
        return Price;
    }
    public void setPrice(Double price) {
        Price = price;
    }
    public Double getCashPrice() {
        return CashPrice;
    }
    public void setCashPrice(Double cashPrice) {
        CashPrice = cashPrice;
    }
    public String getLineName() {
        return LineName;
    }
    public void setLineName(String lineName) {
        LineName = lineName;
    }
    public Double getLinePrice() {
        return LinePrice;
    }
    public void setLinePrice(Double linePrice) {
        LinePrice = linePrice;
    }
    public String getPosName() {
        return PosName;
    }
    public void setPosName(String posName) {
        PosName = posName;
    }
    public Double getPosPrice() {
        return PosPrice;
    }
    public void setPosPrice(Double posPrice) {
        PosPrice = posPrice;
    }
    public Double getBenfitPrice() {
        return BenfitPrice;
    }
    public void setBenfitPrice(Double benfitPrice) {
        BenfitPrice = benfitPrice;
    }
    public Double getBookTip() {
        return BookTip;
    }
    public void setBookTip(Double bookTip) {
        BookTip = bookTip;
    }
    public Double getPassengerTip() {
        return PassengerTip;
    }
    public void setPassengerTip(Double passengerTip) {
        PassengerTip = passengerTip;
    }
    public Double getPeakUpPrice() {
        return PeakUpPrice;
    }
    public void setPeakUpPrice(Double peakUpPrice) {
        PeakUpPrice = peakUpPrice;
    }
    public Double getNightUpPrice() {
        return NightUpPrice;
    }
    public void setNightUpPrice(Double nightUpPrice) {
        NightUpPrice = nightUpPrice;
    }
    public Double getFarUpPrice() {
        return FarUpPrice;
    }
    public void setFarUpPrice(Double farUpPrice) {
        FarUpPrice = farUpPrice;
    }
    public Double getOtherUpPrice() {
        return OtherUpPrice;
    }
    public void setOtherUpPrice(Double otherUpPrice) {
        OtherUpPrice = otherUpPrice;
    }
    public String getPayState() {
        return PayState;
    }
    public void setPayState(String payState) {
        PayState = payState;
    }
    public Date getPayTime() {
        return PayTime;
    }
    public void setPayTime(Date payTime) {
        PayTime = payTime;
    }
    public Date getOrderMatchTime() {
        return OrderMatchTime;
    }
    public void setOrderMatchTime(Date orderMatchTime) {
        OrderMatchTime = orderMatchTime;
    }
    public String getInvoiceStatus() {
        return InvoiceStatus;
    }
    public void setInvoiceStatus(String invoiceStatus) {
        InvoiceStatus = invoiceStatus;
    }
    @Override
    public String toString() {
        return "OperatePay{" +
                "OrderId='" + OrderId + '\'' +
                ", OnArea=" + OnArea +
                ", DriverName='" + DriverName + '\'' +
                ", LicenseId='" + LicenseId + '\'' +
                ", FareType='" + FareType + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", BookDepTime=" + BookDepTime +
                ", WaitTime=" + WaitTime +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", DepArea='" + DepArea + '\'' +
                ", DepTime=" + DepTime +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", DestArea='" + DestArea + '\'' +
                ", DestTime=" + DestTime +
                ", BookModel='" + BookModel + '\'' +
                ", Model='" + Model + '\'' +
                ", DriveMile=" + DriveMile +
                ", DriveTime=" + DriveTime +
                ", WaitMile=" + WaitMile +
                ", FactPrice=" + FactPrice +
                ", Price=" + Price +
                ", CashPrice=" + CashPrice +
                ", LineName='" + LineName + '\'' +
                ", LinePrice=" + LinePrice +
                ", PosName='" + PosName + '\'' +
                ", PosPrice=" + PosPrice +
                ", BenfitPrice=" + BenfitPrice +
                ", BookTip=" + BookTip +
                ", PassengerTip=" + PassengerTip +
                ", PeakUpPrice=" + PeakUpPrice +
                ", NightUpPrice=" + NightUpPrice +
                ", FarUpPrice=" + FarUpPrice +
                ", OtherUpPrice=" + OtherUpPrice +
                ", PayState='" + PayState + '\'' +
                ", PayTime=" + PayTime +
                ", OrderMatchTime=" + OrderMatchTime +
                ", InvoiceStatus='" + InvoiceStatus + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderCancel.java
New file
@@ -0,0 +1,106 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 订单撤销接口
 */
public class OrderCancel {
    /**
     * 上车地点行政区划代码
     */
    private Integer Address;
    /**
     * 订单编号
     */
    private String OrderId;
    /**
     * 订单时间
     */
    private Date OrderTime;
    /**
     * 订单撤销时间
     */
    private Date CancelTime;
    /**
     * 撤销发起方(1:乘客,2:驾驶员,3:平台公司)
     */
    private String Operator;
    /**
     * 撤销类型代码(1:乘客提前撤销,2:驾驶员提前撤销,3:平台公司撤销,4:乘客违约撤销,5:驾驶员违约撤销)
     */
    private String CancelTypeCode;
    /**
     * 撤销或违约原因
     */
    private String CancelReason;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Date getOrderTime() {
        return OrderTime;
    }
    public void setOrderTime(Date orderTime) {
        OrderTime = orderTime;
    }
    public Date getCancelTime() {
        return CancelTime;
    }
    public void setCancelTime(Date cancelTime) {
        CancelTime = cancelTime;
    }
    public String getOperator() {
        return Operator;
    }
    public void setOperator(String operator) {
        Operator = operator;
    }
    public String getCancelTypeCode() {
        return CancelTypeCode;
    }
    public void setCancelTypeCode(String cancelTypeCode) {
        CancelTypeCode = cancelTypeCode;
    }
    public String getCancelReason() {
        return CancelReason;
    }
    public void setCancelReason(String cancelReason) {
        CancelReason = cancelReason;
    }
    @Override
    public String toString() {
        return "OrderCancel{" +
                "Address=" + Address +
                ", OrderId='" + OrderId + '\'' +
                ", OrderTime=" + OrderTime +
                ", CancelTime=" + CancelTime +
                ", Operator='" + Operator + '\'' +
                ", CancelTypeCode='" + CancelTypeCode + '\'' +
                ", CancelReason='" + CancelReason + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderCreate.java
New file
@@ -0,0 +1,184 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 订单发起接口
 */
public class OrderCreate {
    /**
     * 发起第行政区划代码
     */
    private Integer Address;
    /**
     * 订单编号
     */
    private String OrderId;
    /**
     * 预计用车时间
     */
    private Date DepartTime;
    /**
     * 订单发起时间
     */
    private Date OrderTime;
    /**
     * 乘客备注
     */
    private String PassengerNote;
    /**
     * 预计出发地点详细地址
     */
    private String Departure;
    /**
     * 预计出发地点经度
     */
    private Double DepLongitude;
    /**
     * 预计出发地点纬度
     */
    private Double DepLatitude;
    /**
     * 预计目的地
     */
    private String Destination;
    /**
     * 预计目的地经度
     */
    private Double DestLongitude;
    /**
     * 预计目的地纬度
     */
    private Double DestLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 运价类型编码
     */
    private String FareType;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Date getDepartTime() {
        return DepartTime;
    }
    public void setDepartTime(Date departTime) {
        DepartTime = departTime;
    }
    public Date getOrderTime() {
        return OrderTime;
    }
    public void setOrderTime(Date orderTime) {
        OrderTime = orderTime;
    }
    public String getPassengerNote() {
        return PassengerNote;
    }
    public void setPassengerNote(String passengerNote) {
        PassengerNote = passengerNote;
    }
    public String getDeparture() {
        return Departure;
    }
    public void setDeparture(String departure) {
        Departure = departure;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public String getDestination() {
        return Destination;
    }
    public void setDestination(String destination) {
        Destination = destination;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    @Override
    public String toString() {
        return "OrderCreate{" +
                "Address=" + Address +
                ", OrderId='" + OrderId + '\'' +
                ", DepartTime=" + DepartTime +
                ", OrderTime=" + OrderTime +
                ", PassengerNote='" + PassengerNote + '\'' +
                ", Departure='" + Departure + '\'' +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", Destination='" + Destination + '\'' +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", Encrypt=" + Encrypt +
                ", FareType='" + FareType + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/OrderMatch.java
New file
@@ -0,0 +1,132 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 订单成功接口
 */
public class OrderMatch {
    /**
     * 发起地行政区划代码
     */
    private Integer Address;
    /**
     * 订单编号
     */
    private String OrderId;
    /**
     * 车辆经度
     */
    private Double Longitude;
    /**
     * 车辆纬度
     */
    private Double Latitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 机动车驾驶证编号
     */
    private String LicenseId;
    /**
     * 驾驶员手机号
     */
    private String DriverPhone;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 派单成功时间
     */
    private Date DistributeTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Double getLongitude() {
        return Longitude;
    }
    public void setLongitude(Double longitude) {
        Longitude = longitude;
    }
    public Double getLatitude() {
        return Latitude;
    }
    public void setLatitude(Double latitude) {
        Latitude = latitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getDriverPhone() {
        return DriverPhone;
    }
    public void setDriverPhone(String driverPhone) {
        DriverPhone = driverPhone;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Date getDistributeTime() {
        return DistributeTime;
    }
    public void setDistributeTime(Date distributeTime) {
        DistributeTime = distributeTime;
    }
    @Override
    public String toString() {
        return "OrderMatch{" +
                "Address=" + Address +
                ", OrderId='" + OrderId + '\'' +
                ", Longitude=" + Longitude +
                ", Latitude=" + Latitude +
                ", Encrypt=" + Encrypt +
                ", LicenseId='" + LicenseId + '\'' +
                ", DriverPhone='" + DriverPhone + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", DistributeTime=" + DistributeTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/PositionDriver.java
New file
@@ -0,0 +1,169 @@
package com.sinata.ministryoftransport.model;
/**
 * 驾驶员定位信息
 */
public class PositionDriver {
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 行政区划代码
     */
    private Integer DriverRegionCode;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 定位时间(时间戳)
     */
    private Long PositionTime;
    /**
     * 经度
     */
    private Double Longitude;
    /**
     * 纬度
     */
    private Double Latitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 方向角
     */
    private Double Direction;
    /**
     * 海拔高度
     */
    private Double Elevation;
    /**
     * 瞬时速度(km/h)
     */
    private Integer Speed;
    /**
     * 营运状态(1:载客,2:接单,3:空驶,4:停运)
     */
    private Integer BizStatus;
    /**
     * 订单编号
     */
    private String OrderId;
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public Integer getDriverRegionCode() {
        return DriverRegionCode;
    }
    public void setDriverRegionCode(Integer driverRegionCode) {
        DriverRegionCode = driverRegionCode;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Long getPositionTime() {
        return PositionTime;
    }
    public void setPositionTime(Long positionTime) {
        PositionTime = positionTime;
    }
    public Double getLongitude() {
        return Longitude;
    }
    public void setLongitude(Double longitude) {
        Longitude = longitude;
    }
    public Double getLatitude() {
        return Latitude;
    }
    public void setLatitude(Double latitude) {
        Latitude = latitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Double getDirection() {
        return Direction;
    }
    public void setDirection(Double direction) {
        Direction = direction;
    }
    public Double getElevation() {
        return Elevation;
    }
    public void setElevation(Double elevation) {
        Elevation = elevation;
    }
    public Integer getSpeed() {
        return Speed;
    }
    public void setSpeed(Integer speed) {
        Speed = speed;
    }
    public Integer getBizStatus() {
        return BizStatus;
    }
    public void setBizStatus(Integer bizStatus) {
        BizStatus = bizStatus;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    @Override
    public String toString() {
        return "PositionDriver{" +
                "LicenseId='" + LicenseId + '\'' +
                ", DriverRegionCode=" + DriverRegionCode +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", PositionTime=" + PositionTime +
                ", Longitude=" + Longitude +
                ", Latitude=" + Latitude +
                ", Encrypt=" + Encrypt +
                ", Direction=" + Direction +
                ", Elevation=" + Elevation +
                ", Speed=" + Speed +
                ", BizStatus=" + BizStatus +
                ", OrderId='" + OrderId + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/PositionVehicle.java
New file
@@ -0,0 +1,195 @@
package com.sinata.ministryoftransport.model;
/**
 * 车辆定位信息
 */
public class PositionVehicle {
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 行政区划代码
     */
    private Integer VehicleRegionCode;
    /**
     * 定位时间(时间戳)
     */
    private Long PositionTime;
    /**
     * 经度
     */
    private Double Longitude;
    /**
     * 纬度
     */
    private Double Latitude;
    /**
     * 瞬时速度(km/h)
     */
    private Integer Speed;
    /**
     * 方向角
     */
    private Double Direction;
    /**
     * 海拔高度
     */
    private Double Elevation;
    /**
     * 行驶里程(km)
     */
    private Integer Mileage;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 预警状态(参考 JT/T808)
     */
    private Integer WarnStatus;
    /**
     * 车辆状态(参考 JT/T808)
     */
    private Integer VehStatus;
    /**
     * 营运状态(1:载客,2:接单,3:空驶,4:停运)
     */
    private Integer BizStatus;
    /**
     * 订单编号(非营运状态下填"0")
     */
    private String OrderId;
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public Integer getVehicleRegionCode() {
        return VehicleRegionCode;
    }
    public void setVehicleRegionCode(Integer vehicleRegionCode) {
        VehicleRegionCode = vehicleRegionCode;
    }
    public Long getPositionTime() {
        return PositionTime;
    }
    public void setPositionTime(Long positionTime) {
        PositionTime = positionTime;
    }
    public Double getLongitude() {
        return Longitude;
    }
    public void setLongitude(Double longitude) {
        Longitude = longitude;
    }
    public Double getLatitude() {
        return Latitude;
    }
    public void setLatitude(Double latitude) {
        Latitude = latitude;
    }
    public Integer getSpeed() {
        return Speed;
    }
    public void setSpeed(Integer speed) {
        Speed = speed;
    }
    public Double getDirection() {
        return Direction;
    }
    public void setDirection(Double direction) {
        Direction = direction;
    }
    public Double getElevation() {
        return Elevation;
    }
    public void setElevation(Double elevation) {
        Elevation = elevation;
    }
    public Integer getMileage() {
        return Mileage;
    }
    public void setMileage(Integer mileage) {
        Mileage = mileage;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Integer getWarnStatus() {
        return WarnStatus;
    }
    public void setWarnStatus(Integer warnStatus) {
        WarnStatus = warnStatus;
    }
    public Integer getVehStatus() {
        return VehStatus;
    }
    public void setVehStatus(Integer vehStatus) {
        VehStatus = vehStatus;
    }
    public Integer getBizStatus() {
        return BizStatus;
    }
    public void setBizStatus(Integer bizStatus) {
        BizStatus = bizStatus;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    @Override
    public String toString() {
        return "PositionVehicle{" +
                "VehicleNo='" + VehicleNo + '\'' +
                ", VehicleRegionCode=" + VehicleRegionCode +
                ", PositionTime=" + PositionTime +
                ", Longitude=" + Longitude +
                ", Latitude=" + Latitude +
                ", Speed=" + Speed +
                ", Direction=" + Direction +
                ", Elevation=" + Elevation +
                ", Mileage=" + Mileage +
                ", Encrypt=" + Encrypt +
                ", WarnStatus=" + WarnStatus +
                ", VehStatus=" + VehStatus +
                ", BizStatus=" + BizStatus +
                ", OrderId='" + OrderId + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedDriver.java
New file
@@ -0,0 +1,67 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 驾驶员信誉信息
 */
public class RatedDriver {
    /**
     * 机动车驾驶证编号
     */
    private String LicenseId;
    /**
     * 服务质量信誉等级(五分制)
     */
    private Integer Level;
    /**
     * 服务质量信誉考核日期
     */
    private Date TestDate;
    /**
     * 服务质量信誉考核机构
     */
    private String TestDepartment;
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public Integer getLevel() {
        return Level;
    }
    public void setLevel(Integer level) {
        Level = level;
    }
    public Date getTestDate() {
        return TestDate;
    }
    public void setTestDate(Date testDate) {
        TestDate = testDate;
    }
    public String getTestDepartment() {
        return TestDepartment;
    }
    public void setTestDepartment(String testDepartment) {
        TestDepartment = testDepartment;
    }
    @Override
    public String toString() {
        return "RatedDriver{" +
                "LicenseId='" + LicenseId + '\'' +
                ", Level=" + Level +
                ", TestDate=" + TestDate +
                ", TestDepartment='" + TestDepartment + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedDriverPunish.java
New file
@@ -0,0 +1,67 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 驾驶员处罚信息
 */
public class RatedDriverPunish {
    /**
     * 机动车驾驶证编号
     */
    private String LicenseId;
    /**
     * 处罚时间
     */
    private Date PunishTime;
    /**
     * 处罚原因
     */
    private String PunishReason;
    /**
     * 处罚结果
     */
    private String PunishReault;
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public Date getPunishTime() {
        return PunishTime;
    }
    public void setPunishTime(Date punishTime) {
        PunishTime = punishTime;
    }
    public String getPunishReason() {
        return PunishReason;
    }
    public void setPunishReason(String punishReason) {
        PunishReason = punishReason;
    }
    public String getPunishReault() {
        return PunishReault;
    }
    public void setPunishReault(String punishReault) {
        PunishReault = punishReault;
    }
    @Override
    public String toString() {
        return "RatedDriverPunish{" +
                "LicenseId='" + LicenseId + '\'' +
                ", PunishTime=" + PunishTime +
                ", PunishReason='" + PunishReason + '\'' +
                ", PunishReault='" + PunishReault + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedPassenger.java
New file
@@ -0,0 +1,93 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 乘客评价信息
 */
public class RatedPassenger {
    /**
     * 订单号
     */
    private String OrderId;
    /**
     * 评价时间
     */
    private Date EvaluateTime;
    /**
     * 服务满意度(五分制)
     */
    private Integer ServiceScore;
    /**
     * 驾驶员满意度(五分制)
     */
    private Integer DriverScore;
    /**
     * 车辆满意度(五分制)
     */
    private Integer VehicleScore;
    /**
     * 评价内容
     */
    private String Detail;
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Date getEvaluateTime() {
        return EvaluateTime;
    }
    public void setEvaluateTime(Date evaluateTime) {
        EvaluateTime = evaluateTime;
    }
    public Integer getServiceScore() {
        return ServiceScore;
    }
    public void setServiceScore(Integer serviceScore) {
        ServiceScore = serviceScore;
    }
    public Integer getDriverScore() {
        return DriverScore;
    }
    public void setDriverScore(Integer driverScore) {
        DriverScore = driverScore;
    }
    public Integer getVehicleScore() {
        return VehicleScore;
    }
    public void setVehicleScore(Integer vehicleScore) {
        VehicleScore = vehicleScore;
    }
    public String getDetail() {
        return Detail;
    }
    public void setDetail(String detail) {
        Detail = detail;
    }
    @Override
    public String toString() {
        return "RatedPassenger{" +
                "OrderId='" + OrderId + '\'' +
                ", EvaluateTime=" + EvaluateTime +
                ", ServiceScore=" + ServiceScore +
                ", DriverScore=" + DriverScore +
                ", VehicleScore=" + VehicleScore +
                ", Detail='" + Detail + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/RatedPassengerComplaint.java
New file
@@ -0,0 +1,67 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 乘客投诉信息
 */
public class RatedPassengerComplaint {
    /**
     * 订单号
     */
    private String OrderId;
    /**
     * 投诉时间
     */
    private Date ComplaintTime;
    /**
     * 投诉内容
     */
    private String Detail;
    /**
     * 处理结果
     */
    private String Result;
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Date getComplaintTime() {
        return ComplaintTime;
    }
    public void setComplaintTime(Date complaintTime) {
        ComplaintTime = complaintTime;
    }
    public String getDetail() {
        return Detail;
    }
    public void setDetail(String detail) {
        Detail = detail;
    }
    public String getResult() {
        return Result;
    }
    public void setResult(String result) {
        Result = result;
    }
    @Override
    public String toString() {
        return "RatedPassengerComplaint{" +
                "OrderId='" + OrderId + '\'' +
                ", ComplaintTime=" + ComplaintTime +
                ", Detail='" + Detail + '\'' +
                ", Result='" + Result + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareCompany.java
New file
@@ -0,0 +1,145 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 私人小客车合乘信息服务平台基本信息
 */
public class ShareCompany {
    /**
     * 公司名称
     */
    private String CompanyName;
    /**
     * 统一社会信用代码
     */
    private String Identifier;
    /**
     * 注册地行政区划代码
     */
    private Integer Address;
    /**
     * 通信地址
     */
    private String ContactAddress;
    /**
     * 经营业户经济类型(见 JT/T415-2006中5.1.8规定)
     */
    private String EconomicType;
    /**
     * 法人代表姓名(按照营业执照填写)
     */
    private String LegalName;
    /**
     * 法人代表电话
     */
    private String LegalPhone;
    /**
     * 状态(0:有效,1:无效)
     */
    private Integer State;
    /**
     * 操作标识(1:新增,2:更新,3:删除)
     */
    private Integer Flag;
    /**
     * 更新时间
     */
    private Date UpdateTime;
    public String getCompanyName() {
        return CompanyName;
    }
    public void setCompanyName(String companyName) {
        CompanyName = companyName;
    }
    public String getIdentifier() {
        return Identifier;
    }
    public void setIdentifier(String identifier) {
        Identifier = identifier;
    }
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getContactAddress() {
        return ContactAddress;
    }
    public void setContactAddress(String contactAddress) {
        ContactAddress = contactAddress;
    }
    public String getEconomicType() {
        return EconomicType;
    }
    public void setEconomicType(String economicType) {
        EconomicType = economicType;
    }
    public String getLegalName() {
        return LegalName;
    }
    public void setLegalName(String legalName) {
        LegalName = legalName;
    }
    public String getLegalPhone() {
        return LegalPhone;
    }
    public void setLegalPhone(String legalPhone) {
        LegalPhone = legalPhone;
    }
    public Integer getState() {
        return State;
    }
    public void setState(Integer state) {
        State = state;
    }
    public Integer getFlag() {
        return Flag;
    }
    public void setFlag(Integer flag) {
        Flag = flag;
    }
    public Date getUpdateTime() {
        return UpdateTime;
    }
    public void setUpdateTime(Date updateTime) {
        UpdateTime = updateTime;
    }
    @Override
    public String toString() {
        return "ShareCompany{" +
                "CompanyName='" + CompanyName + '\'' +
                ", Identifier='" + Identifier + '\'' +
                ", Address=" + Address +
                ", ContactAddress='" + ContactAddress + '\'' +
                ", EconomicType='" + EconomicType + '\'' +
                ", LegalName='" + LegalName + '\'' +
                ", LegalPhone='" + LegalPhone + '\'' +
                ", State=" + State +
                ", Flag=" + Flag +
                ", UpdateTime=" + UpdateTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareOrder.java
New file
@@ -0,0 +1,197 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 私人小客车合乘订单
 */
public class ShareOrder {
    /**
     * 行政区划代码
     */
    private Integer Address;
    /**
     * 驾驶员发起行程编号
     */
    private String RouteId;
    /**
     * 乘客合乘订单号
     */
    private String OrderId;
    /**
     * 预计上车时间
     */
    private Date BookDepartTime;
    /**
     * 预计上车地点
     */
    private String Departure;
    /**
     * 预计上车地点经度
     */
    private Double DepLongitude;
    /**
     * 预计上车地点纬度
     */
    private Double DepLatitude;
    /**
     * 预计下车地点
     */
    private String Destination;
    /**
     * 预计下车地点经度
     */
    private Double DestLongitude;
    /**
     * 预计下车地点纬度
     */
    private Double DestLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 订单确认时间
     */
    private Date OrderEnsureTime;
    /**
     * 乘客人数
     */
    private Integer PassengerNum;
    /**
     * 乘客备注
     */
    private String PassengerNote;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getRouteId() {
        return RouteId;
    }
    public void setRouteId(String routeId) {
        RouteId = routeId;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public Date getBookDepartTime() {
        return BookDepartTime;
    }
    public void setBookDepartTime(Date bookDepartTime) {
        BookDepartTime = bookDepartTime;
    }
    public String getDeparture() {
        return Departure;
    }
    public void setDeparture(String departure) {
        Departure = departure;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public String getDestination() {
        return Destination;
    }
    public void setDestination(String destination) {
        Destination = destination;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Date getOrderEnsureTime() {
        return OrderEnsureTime;
    }
    public void setOrderEnsureTime(Date orderEnsureTime) {
        OrderEnsureTime = orderEnsureTime;
    }
    public Integer getPassengerNum() {
        return PassengerNum;
    }
    public void setPassengerNum(Integer passengerNum) {
        PassengerNum = passengerNum;
    }
    public String getPassengerNote() {
        return PassengerNote;
    }
    public void setPassengerNote(String passengerNote) {
        PassengerNote = passengerNote;
    }
    @Override
    public String toString() {
        return "ShareOrder{" +
                "Address=" + Address +
                ", RouteId='" + RouteId + '\'' +
                ", OrderId='" + OrderId + '\'' +
                ", BookDepartTime=" + BookDepartTime +
                ", Departure='" + Departure + '\'' +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", Destination='" + Destination + '\'' +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", Encrypt=" + Encrypt +
                ", OrderEnsureTime=" + OrderEnsureTime +
                ", PassengerNum=" + PassengerNum +
                ", PassengerNote='" + PassengerNote + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/SharePay.java
New file
@@ -0,0 +1,444 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 私人小客车合乘订单支付
 */
public class SharePay {
    /**
     * 行政区划代码
     */
    private Integer Address;
    /**
     * 驾驶员发起行程编号
     */
    private String RouteId;
    /**
     * 乘客合乘订单号
     */
    private String OrderId;
    /**
     * 驾驶员手机号
     */
    private String DriverPhone;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 运价类型编码
     */
    private String FareType;
    /**
     * 预计上车时间
     */
    private Date BookDepartTime;
    /**
     * 实际上车时间
     */
    private Date DepartTime;
    /**
     * 上车地点
     */
    private String Departure;
    /**
     * 上车地点经度
     */
    private Double DepLongitude;
    /**
     * 上车地点纬度
     */
    private Double DepLatitude;
    /**
     * 下车时间
     */
    private Date DestTime;
    /**
     * 下车地点
     */
    private String Destination;
    /**
     * 下车地点经度
     */
    private Double DestLongitude;
    /**
     * 下车地点纬度
     */
    private Double DestLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 载客里程(km)
     */
    private Integer DriveMile;
    /**
     * 载客时间(秒)
     */
    private Integer DriveTime;
    /**
     * 实收金额(元)
     */
    private Double FactPrice;
    /**
     * 应收金额(元)
     */
    private Double Price;
    /**
     * 现金支付金额(元)
     */
    private Double CashPrice;
    /**
     * 电子支付机构
     */
    private String LineName;
    /**
     * 电子支付金额(元)
     */
    private Double LinePrice;
    /**
     * 优惠金额(元)
     */
    private Double BenfitPrice;
    /**
     * 燃料成本分摊金额(元)
     */
    private Double ShareFuelFee;
    /**
     * 路桥通行分摊金额(元)
     */
    private Double ShareHighwayToll;
    /**
     * 附加费(元)
     */
    private Double PassengerTip;
    /**
     * 其他费用分摊金额(元)
     */
    private Double ShareOther;
    /**
     * 结算状态(0:未结算,1:已结算,2:未知)
     */
    private Integer PayState;
    /**
     * 乘客人数
     */
    private Integer PassengerNum;
    /**
     * 乘客结算时间
     */
    private Date PayTime;
    /**
     * 订单完成时间
     */
    private Date OrderMatchTime;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getRouteId() {
        return RouteId;
    }
    public void setRouteId(String routeId) {
        RouteId = routeId;
    }
    public String getOrderId() {
        return OrderId;
    }
    public void setOrderId(String orderId) {
        OrderId = orderId;
    }
    public String getDriverPhone() {
        return DriverPhone;
    }
    public void setDriverPhone(String driverPhone) {
        DriverPhone = driverPhone;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public String getFareType() {
        return FareType;
    }
    public void setFareType(String fareType) {
        FareType = fareType;
    }
    public Date getBookDepartTime() {
        return BookDepartTime;
    }
    public void setBookDepartTime(Date bookDepartTime) {
        BookDepartTime = bookDepartTime;
    }
    public Date getDepartTime() {
        return DepartTime;
    }
    public void setDepartTime(Date departTime) {
        DepartTime = departTime;
    }
    public String getDeparture() {
        return Departure;
    }
    public void setDeparture(String departure) {
        Departure = departure;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public Date getDestTime() {
        return DestTime;
    }
    public void setDestTime(Date destTime) {
        DestTime = destTime;
    }
    public String getDestination() {
        return Destination;
    }
    public void setDestination(String destination) {
        Destination = destination;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Integer getDriveMile() {
        return DriveMile;
    }
    public void setDriveMile(Integer driveMile) {
        DriveMile = driveMile;
    }
    public Integer getDriveTime() {
        return DriveTime;
    }
    public void setDriveTime(Integer driveTime) {
        DriveTime = driveTime;
    }
    public Double getFactPrice() {
        return FactPrice;
    }
    public void setFactPrice(Double factPrice) {
        FactPrice = factPrice;
    }
    public Double getPrice() {
        return Price;
    }
    public void setPrice(Double price) {
        Price = price;
    }
    public Double getCashPrice() {
        return CashPrice;
    }
    public void setCashPrice(Double cashPrice) {
        CashPrice = cashPrice;
    }
    public String getLineName() {
        return LineName;
    }
    public void setLineName(String lineName) {
        LineName = lineName;
    }
    public Double getLinePrice() {
        return LinePrice;
    }
    public void setLinePrice(Double linePrice) {
        LinePrice = linePrice;
    }
    public Double getBenfitPrice() {
        return BenfitPrice;
    }
    public void setBenfitPrice(Double benfitPrice) {
        BenfitPrice = benfitPrice;
    }
    public Double getShareFuelFee() {
        return ShareFuelFee;
    }
    public void setShareFuelFee(Double shareFuelFee) {
        ShareFuelFee = shareFuelFee;
    }
    public Double getShareHighwayToll() {
        return ShareHighwayToll;
    }
    public void setShareHighwayToll(Double shareHighwayToll) {
        ShareHighwayToll = shareHighwayToll;
    }
    public Double getPassengerTip() {
        return PassengerTip;
    }
    public void setPassengerTip(Double passengerTip) {
        PassengerTip = passengerTip;
    }
    public Double getShareOther() {
        return ShareOther;
    }
    public void setShareOther(Double shareOther) {
        ShareOther = shareOther;
    }
    public Integer getPayState() {
        return PayState;
    }
    public void setPayState(Integer payState) {
        PayState = payState;
    }
    public Integer getPassengerNum() {
        return PassengerNum;
    }
    public void setPassengerNum(Integer passengerNum) {
        PassengerNum = passengerNum;
    }
    public Date getPayTime() {
        return PayTime;
    }
    public void setPayTime(Date payTime) {
        PayTime = payTime;
    }
    public Date getOrderMatchTime() {
        return OrderMatchTime;
    }
    public void setOrderMatchTime(Date orderMatchTime) {
        OrderMatchTime = orderMatchTime;
    }
    @Override
    public String toString() {
        return "SharePay{" +
                "Address=" + Address +
                ", RouteId='" + RouteId + '\'' +
                ", OrderId='" + OrderId + '\'' +
                ", DriverPhone='" + DriverPhone + '\'' +
                ", LicenseId='" + LicenseId + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", FareType='" + FareType + '\'' +
                ", BookDepartTime=" + BookDepartTime +
                ", DepartTime=" + DepartTime +
                ", Departure='" + Departure + '\'' +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", DestTime=" + DestTime +
                ", Destination='" + Destination + '\'' +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", Encrypt=" + Encrypt +
                ", DriveMile=" + DriveMile +
                ", DriveTime=" + DriveTime +
                ", FactPrice=" + FactPrice +
                ", Price=" + Price +
                ", CashPrice=" + CashPrice +
                ", LineName='" + LineName + '\'' +
                ", LinePrice=" + LinePrice +
                ", BenfitPrice=" + BenfitPrice +
                ", ShareFuelFee=" + ShareFuelFee +
                ", ShareHighwayToll=" + ShareHighwayToll +
                ", PassengerTip=" + PassengerTip +
                ", ShareOther=" + ShareOther +
                ", PayState=" + PayState +
                ", PassengerNum=" + PassengerNum +
                ", PayTime=" + PayTime +
                ", OrderMatchTime=" + OrderMatchTime +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/model/ShareRoute.java
New file
@@ -0,0 +1,223 @@
package com.sinata.ministryoftransport.model;
import java.util.Date;
/**
 * 私人小客车合乘驾驶员行程发布
 */
public class ShareRoute {
    /**
     * 行政区划代码
     */
    private Integer Address;
    /**
     * 驾驶员发起行程编号
     */
    private String RouteId;
    /**
     * 驾驶员姓名
     */
    private String DriverName;
    /**
     * 驾驶员手机号
     */
    private String DriverPhone;
    /**
     * 机动车驾驶证号
     */
    private String LicenseId;
    /**
     * 车辆号牌
     */
    private String VehicleNo;
    /**
     * 行程出发地点
     */
    private String Departure;
    /**
     * 车辆出发经度
     */
    private Double DepLongitude;
    /**
     * 车辆出发纬度
     */
    private Double DepLatitude;
    /**
     * 行程到达地点
     */
    private String Destination;
    /**
     * 到达地经度
     */
    private Double DestLongitude;
    /**
     * 到达纬度
     */
    private Double DestLatitude;
    /**
     * 坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
     */
    private Integer Encrypt;
    /**
     * 行程发布时间
     */
    private Date RouteCreateTime;
    /**
     * 行程预计里程(km)
     */
    private Integer RouteMile;
    /**
     * 行程备注
     */
    private String RouteNote;
    public Integer getAddress() {
        return Address;
    }
    public void setAddress(Integer address) {
        Address = address;
    }
    public String getRouteId() {
        return RouteId;
    }
    public void setRouteId(String routeId) {
        RouteId = routeId;
    }
    public String getDriverName() {
        return DriverName;
    }
    public void setDriverName(String driverName) {
        DriverName = driverName;
    }
    public String getDriverPhone() {
        return DriverPhone;
    }
    public void setDriverPhone(String driverPhone) {
        DriverPhone = driverPhone;
    }
    public String getLicenseId() {
        return LicenseId;
    }
    public void setLicenseId(String licenseId) {
        LicenseId = licenseId;
    }
    public String getVehicleNo() {
        return VehicleNo;
    }
    public void setVehicleNo(String vehicleNo) {
        VehicleNo = vehicleNo;
    }
    public String getDeparture() {
        return Departure;
    }
    public void setDeparture(String departure) {
        Departure = departure;
    }
    public Double getDepLongitude() {
        return DepLongitude;
    }
    public void setDepLongitude(Double depLongitude) {
        DepLongitude = depLongitude;
    }
    public Double getDepLatitude() {
        return DepLatitude;
    }
    public void setDepLatitude(Double depLatitude) {
        DepLatitude = depLatitude;
    }
    public String getDestination() {
        return Destination;
    }
    public void setDestination(String destination) {
        Destination = destination;
    }
    public Double getDestLongitude() {
        return DestLongitude;
    }
    public void setDestLongitude(Double destLongitude) {
        DestLongitude = destLongitude;
    }
    public Double getDestLatitude() {
        return DestLatitude;
    }
    public void setDestLatitude(Double destLatitude) {
        DestLatitude = destLatitude;
    }
    public Integer getEncrypt() {
        return Encrypt;
    }
    public void setEncrypt(Integer encrypt) {
        Encrypt = encrypt;
    }
    public Date getRouteCreateTime() {
        return RouteCreateTime;
    }
    public void setRouteCreateTime(Date routeCreateTime) {
        RouteCreateTime = routeCreateTime;
    }
    public Integer getRouteMile() {
        return RouteMile;
    }
    public void setRouteMile(Integer routeMile) {
        RouteMile = routeMile;
    }
    public String getRouteNote() {
        return RouteNote;
    }
    public void setRouteNote(String routeNote) {
        RouteNote = routeNote;
    }
    @Override
    public String toString() {
        return "ShareRoute{" +
                "Address=" + Address +
                ", RouteId='" + RouteId + '\'' +
                ", DriverName='" + DriverName + '\'' +
                ", DriverPhone='" + DriverPhone + '\'' +
                ", LicenseId='" + LicenseId + '\'' +
                ", VehicleNo='" + VehicleNo + '\'' +
                ", Departure='" + Departure + '\'' +
                ", DepLongitude=" + DepLongitude +
                ", DepLatitude=" + DepLatitude +
                ", Destination='" + Destination + '\'' +
                ", DestLongitude=" + DestLongitude +
                ", DestLatitude=" + DestLatitude +
                ", Encrypt=" + Encrypt +
                ", RouteCreateTime=" + RouteCreateTime +
                ", RouteMile=" + RouteMile +
                ", RouteNote='" + RouteNote + '\'' +
                '}';
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/server/IMinistryOfTransportService.java
New file
@@ -0,0 +1,259 @@
package com.sinata.ministryoftransport.server;
public interface IMinistryOfTransportService {
    /**
     * 上传企业基本信息
     * @param baseInfoCompany
     * @throws Exception
     */
    String baseInfoCompany(String baseInfoCompany) throws Exception;
    /**
     * 上传网约车平台公司营运规模信息
     * @param baseInfoCompanyStat
     * @throws Exception
     */
    String baseInfoCompanyStat(String baseInfoCompanyStat) throws Exception;
    /**
     * 上传网约车平台公司支付信息
     * @param baseInfoCompanyPay
     * @throws Exception
     */
    String baseInfoCompanyPay(String baseInfoCompanyPay) throws Exception;
    /**
     * 上传网约车平台公司服务机构
     * @param baseInfoCompanyService
     * @throws Exception
     */
    String baseInfoCompanyService(String baseInfoCompanyService) throws Exception;
    /**
     * 网约车平台公司经营许可
     * @param baseInfoCompanyPermit
     * @throws Exception
     */
    String baseInfoCompanyPermit(String baseInfoCompanyPermit) throws Exception;
    /**
     * 网约车平台公司运价信息
     * @param baseInfoCompanyFare
     * @throws Exception
     */
    String baseInfoCompanyFare(String baseInfoCompanyFare) throws Exception;
    /**
     * 车辆基本信息
     * @param baseInfoVehicle
     * @throws Exception
     */
    String baseInfoVehicle(String baseInfoVehicle) throws Exception;
    /**
     * 车辆保险信息
     * @param baseInfoVehicleInsurance
     * @throws Exception
     */
    String baseInfoVehicleInsurance(String baseInfoVehicleInsurance) throws Exception;
    /**
     * 网约车车辆里程信息
     * @param baseInfoVehicleTotalMile
     * @throws Exception
     */
    String baseInfoVehicleTotalMile(String baseInfoVehicleTotalMile) throws Exception;
    /**
     * 驾驶员基本信息
     * @param baseInfoDriver
     * @throws Exception
     */
    String baseInfoDriver(String baseInfoDriver) throws Exception;
    /**
     * 网约车驾驶员培训信息
     * @param baseInfoDriverEducate
     * @throws Exception
     */
    String baseInfoDriverEducate(String baseInfoDriverEducate) throws Exception;
    /**
     * 驾驶员移动终端信息
     * @param baseInfoDriverApp
     * @throws Exception
     */
    String baseInfoDriverApp(String baseInfoDriverApp) throws Exception;
    /**
     * 驾驶员统计信息
     * @param baseInfoDriverStat
     * @throws Exception
     */
    String baseInfoDriverStat(String baseInfoDriverStat) throws Exception;
    /**
     * 乘客基本信息
     * @param baseInfoPassenger
     * @throws Exception
     */
    String baseInfoPassenger(String baseInfoPassenger) throws Exception;
    /**
     * 订单发起接口
     * @param orderCreate
     * @throws Exception
     */
    String orderCreate(String orderCreate) throws Exception;
    /**
     * 订单成功接口
     * @param orderMatch
     * @throws Exception
     */
    String orderMatch(String orderMatch) throws Exception;
    /**
     * 订单撤销接口
     * @param orderCancel
     * @throws Exception
     */
    String orderCancel(String orderCancel) throws Exception;
    /**
     * 车辆经营上线接口
     * @param operateLogin
     * @throws Exception
     */
    String operateLogin(String operateLogin) throws Exception;
    /**
     * 车辆经营下线接口
     * @param operateLogout
     * @throws Exception
     */
    String operateLogout(String operateLogout) throws Exception;
    /**
     * 经营出发接口
     * @param operateDepart
     * @throws Exception
     */
    String operateDepart(String operateDepart) throws Exception;
    /**
     * 经营到达接口
     * @param operateArrive
     * @throws Exception
     */
    String operateArrive(String operateArrive) throws Exception;
    /**
     * 经营支付接口
     * @param operatePay
     * @throws Exception
     */
    String operatePay(String operatePay) throws Exception;
    /**
     * 驾驶员定位信息
     * @param positionDriver
     * @throws Exception
     */
    String positionDriver(String positionDriver) throws Exception;
    /**
     * 车辆定位信息
     * @param positionVehicle
     * @throws Exception
     */
    String positionVehicle(String positionVehicle) throws Exception;
    /**
     * 乘客评价信息
     * @param ratedPassenger
     * @throws Exception
     */
    String ratedPassenger(String ratedPassenger) throws Exception;
    /**
     * 乘客投诉信息
     * @param ratedPassengerComplaint
     * @throws Exception
     */
    String ratedPassengerComplaint(String ratedPassengerComplaint) throws Exception;
    /**
     * 驾驶员处罚信息
     * @param ratedDriverPunish
     * @throws Exception
     */
    String ratedDriverPunish(String ratedDriverPunish) throws Exception;
    /**
     * 驾驶员信誉信息
     * @param ratedDriver
     * @throws Exception
     */
    String ratedDriver(String ratedDriver) throws Exception;
    /**
     * 私人小客车合乘信息服务平台基本信息
     * @param shareCompany
     * @throws Exception
     */
    String shareCompany(String shareCompany) throws Exception;
    /**
     * 私人小客车合乘驾驶员行程发布接口
     * @param shareRoute
     * @throws Exception
     */
    String shareRoute(String shareRoute) throws Exception;
    /**
     * 私人小客车合乘订单接口
     * @param shareOrder
     * @throws Exception
     */
    String shareOrder(String shareOrder) throws Exception;
    /**
     * 私人小客车合乘订单支付接口
     * @param sharePay
     * @throws Exception
     */
    String sharePay(String sharePay) throws Exception;
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/server/impl/MinistryOfTransportServiceImpl.java
New file
@@ -0,0 +1,390 @@
package com.sinata.ministryoftransport.server.impl;
import com.alibaba.fastjson.JSON;
import com.sinata.ministryoftransport.model.*;
import com.sinata.ministryoftransport.server.IMinistryOfTransportService;
import com.sinata.ministryoftransport.util.MinistryOfTransport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class MinistryOfTransportServiceImpl implements IMinistryOfTransportService {
    @Autowired
    private MinistryOfTransport ministryOfTransport;
    /**
     * 上传企业基本信息
     * @param baseInfoCompany
     * @throws Exception
     */
    @Override
    public String baseInfoCompany(String baseInfoCompany) throws Exception {
        BaseInfoCompany data = JSON.parseObject(baseInfoCompany, BaseInfoCompany.class);
        return ministryOfTransport.baseInfoCompany(data);
    }
    /**
     * 上传网约车平台公司营运规模信息
     * @param baseInfoCompanyStat
     * @throws Exception
     */
    @Override
    public String baseInfoCompanyStat(String baseInfoCompanyStat) throws Exception {
        BaseInfoCompanyStat data = JSON.parseObject(baseInfoCompanyStat, BaseInfoCompanyStat.class);
        return ministryOfTransport.baseInfoCompanyStat(data);
    }
    /**
     * 上传网约车平台公司支付信息
     * @param baseInfoCompanyPay
     * @throws Exception
     */
    @Override
    public String baseInfoCompanyPay(String baseInfoCompanyPay) throws Exception {
        BaseInfoCompanyPay data = JSON.parseObject(baseInfoCompanyPay, BaseInfoCompanyPay.class);
        return ministryOfTransport.baseInfoCompanyPay(data);
    }
    /**
     * 网约车平台公司服务机构
     * @param baseInfoCompanyService
     * @throws Exception
     */
    @Override
    public String baseInfoCompanyService(String baseInfoCompanyService) throws Exception {
        BaseInfoCompanyService data = JSON.parseObject(baseInfoCompanyService, BaseInfoCompanyService.class);
        return ministryOfTransport.baseInfoCompanyService(data);
    }
    /**
     * 网约车平台公司经营许可
     * @param baseInfoCompanyPermit
     * @throws Exception
     */
    @Override
    public String baseInfoCompanyPermit(String baseInfoCompanyPermit) throws Exception {
        BaseInfoCompanyPermit data = JSON.parseObject(baseInfoCompanyPermit, BaseInfoCompanyPermit.class);
        return ministryOfTransport.baseInfoCompanyPermit(data);
    }
    /**
     * 网约车平台公司运价信息
     * @param baseInfoCompanyFare
     * @throws Exception
     */
    @Override
    public String baseInfoCompanyFare(String baseInfoCompanyFare) throws Exception {
        BaseInfoCompanyFare data = JSON.parseObject(baseInfoCompanyFare, BaseInfoCompanyFare.class);
        return ministryOfTransport.baseInfoCompanyFare(data);
    }
    /**
     * 车辆基本信息
     * @param baseInfoVehicle
     * @throws Exception
     */
    @Override
    public String baseInfoVehicle(String baseInfoVehicle) throws Exception {
        BaseInfoVehicle data = JSON.parseObject(baseInfoVehicle, BaseInfoVehicle.class);
        return ministryOfTransport.baseInfoVehicle(data);
    }
    /**
     * 车辆保险信息
     * @param baseInfoVehicleInsurance
     * @throws Exception
     */
    @Override
    public String baseInfoVehicleInsurance(String baseInfoVehicleInsurance) throws Exception {
        BaseInfoVehicleInsurance data = JSON.parseObject(baseInfoVehicleInsurance, BaseInfoVehicleInsurance.class);
        return ministryOfTransport.baseInfoVehicleInsurance(data);
    }
    /**
     * 网约车车辆里程信息
     * @param baseInfoVehicleTotalMile
     * @throws Exception
     */
    @Override
    public String baseInfoVehicleTotalMile(String baseInfoVehicleTotalMile) throws Exception {
        BaseInfoVehicleTotalMile data = JSON.parseObject(baseInfoVehicleTotalMile, BaseInfoVehicleTotalMile.class);
        return ministryOfTransport.baseInfoVehicleTotalMile(data);
    }
    /**
     * 驾驶员基本信息
     * @param baseInfoDriver
     * @throws Exception
     */
    @Override
    public String baseInfoDriver(String baseInfoDriver) throws Exception {
        BaseInfoDriver data = JSON.parseObject(baseInfoDriver, BaseInfoDriver.class);
        return ministryOfTransport.baseInfoDriver(data);
    }
    /**
     * 网约车驾驶员培训信息
     * @param baseInfoDriverEducate
     * @throws Exception
     */
    @Override
    public String baseInfoDriverEducate(String baseInfoDriverEducate) throws Exception {
        BaseInfoDriverEducate data = JSON.parseObject(baseInfoDriverEducate, BaseInfoDriverEducate.class);
        return ministryOfTransport.baseInfoDriverEducate(data);
    }
    /**
     * 驾驶员移动终端信息
     * @param baseInfoDriverApp
     * @throws Exception
     */
    @Override
    public String baseInfoDriverApp(String baseInfoDriverApp) throws Exception {
        BaseInfoDriverApp data = JSON.parseObject(baseInfoDriverApp, BaseInfoDriverApp.class);
        return ministryOfTransport.baseInfoDriverApp(data);
    }
    /**
     * 驾驶员统计信息
     * @param baseInfoDriverStat
     * @throws Exception
     */
    @Override
    public String baseInfoDriverStat(String baseInfoDriverStat) throws Exception {
        BaseInfoDriverStat data = JSON.parseObject(baseInfoDriverStat, BaseInfoDriverStat.class);
        return ministryOfTransport.baseInfoDriverStat(data);
    }
    /**
     * 乘客基本信息
     * @param baseInfoPassenger
     * @throws Exception
     */
    @Override
    public String baseInfoPassenger(String baseInfoPassenger) throws Exception {
        BaseInfoPassenger data = JSON.parseObject(baseInfoPassenger, BaseInfoPassenger.class);
        return ministryOfTransport.baseInfoPassenger(data);
    }
    /**
     * 订单发起接口
     * @param orderCreate
     * @throws Exception
     */
    @Override
    public String orderCreate(String orderCreate) throws Exception {
        OrderCreate data = JSON.parseObject(orderCreate, OrderCreate.class);
        return ministryOfTransport.orderCreate(data);
    }
    /**
     * 订单成功接口
     * @param orderMatch
     * @throws Exception
     */
    @Override
    public String orderMatch(String orderMatch) throws Exception {
        OrderMatch data = JSON.parseObject(orderMatch, OrderMatch.class);
        return ministryOfTransport.orderMatch(data);
    }
    /**
     * 订单撤销接口
     * @param orderCancel
     * @throws Exception
     */
    @Override
    public String orderCancel(String orderCancel) throws Exception {
        OrderCancel data = JSON.parseObject(orderCancel, OrderCancel.class);
        return ministryOfTransport.orderCancel(data);
    }
    /**
     * 车辆经营上线接口
     * @param operateLogin
     * @throws Exception
     */
    @Override
    public String operateLogin(String operateLogin) throws Exception {
        OperateLogin data = JSON.parseObject(operateLogin, OperateLogin.class);
        return ministryOfTransport.operateLogin(data);
    }
    /**
     * 车辆经营下线接口
     * @param operateLogout
     * @throws Exception
     */
    @Override
    public String operateLogout(String operateLogout) throws Exception {
        OperateLogout data = JSON.parseObject(operateLogout, OperateLogout.class);
        return ministryOfTransport.operateLogout(data);
    }
    /**
     * 经营出发接口
     * @param operateDepart
     * @throws Exception
     */
    @Override
    public String operateDepart(String operateDepart) throws Exception {
        OperateDepart data = JSON.parseObject(operateDepart, OperateDepart.class);
        return ministryOfTransport.operateDepart(data);
    }
    /**
     * 经营到达接口
     * @param operateArrive
     * @throws Exception
     */
    @Override
    public String operateArrive(String operateArrive) throws Exception {
        OperateArrive data = JSON.parseObject(operateArrive, OperateArrive.class);
        return ministryOfTransport.operateArrive(data);
    }
    /**
     * 经营支付接口
     * @param operatePay
     * @throws Exception
     */
    @Override
    public String operatePay(String operatePay) throws Exception {
        OperatePay data = JSON.parseObject(operatePay, OperatePay.class);
        return ministryOfTransport.operatePay(data);
    }
    /**
     * 驾驶员定位信息
     * @param positionDriver
     * @throws Exception
     */
    @Override
    public String positionDriver(String positionDriver) throws Exception {
        PositionDriver data = JSON.parseObject(positionDriver, PositionDriver.class);
        return ministryOfTransport.positionDriver(data);
    }
    /**
     * 车辆定位信息
     * @param positionVehicle
     * @throws Exception
     */
    @Override
    public String positionVehicle(String positionVehicle) throws Exception {
        PositionVehicle data = JSON.parseObject(positionVehicle, PositionVehicle.class);
        return ministryOfTransport.positionVehicle(data);
    }
    /**
     * 乘客评价信息
     * @param ratedPassenger
     * @throws Exception
     */
    @Override
    public String ratedPassenger(String ratedPassenger) throws Exception {
        RatedPassenger data = JSON.parseObject(ratedPassenger, RatedPassenger.class);
        return ministryOfTransport.ratedPassenger(data);
    }
    /**
     * 乘客投诉信息
     * @param ratedPassengerComplaint
     * @throws Exception
     */
    @Override
    public String ratedPassengerComplaint(String ratedPassengerComplaint) throws Exception {
        RatedPassengerComplaint data = JSON.parseObject(ratedPassengerComplaint, RatedPassengerComplaint.class);
        return ministryOfTransport.ratedPassengerComplaint(data);
    }
    /**
     * 驾驶员处罚信息
     * @param ratedDriverPunish
     * @throws Exception
     */
    @Override
    public String ratedDriverPunish(String ratedDriverPunish) throws Exception {
        RatedDriverPunish data = JSON.parseObject(ratedDriverPunish, RatedDriverPunish.class);
        return ministryOfTransport.ratedDriverPunish(data);
    }
    /**
     * 驾驶员信誉信息
     * @param ratedDriver
     * @throws Exception
     */
    @Override
    public String ratedDriver(String ratedDriver) throws Exception {
        RatedDriver data = JSON.parseObject(ratedDriver, RatedDriver.class);
        return ministryOfTransport.ratedDriver(data);
    }
    /**
     * 私人小客车合乘信息服务平台基本信息
     * @param shareCompany
     * @throws Exception
     */
    @Override
    public String shareCompany(String shareCompany) throws Exception {
        ShareCompany data = JSON.parseObject(shareCompany, ShareCompany.class);
        return ministryOfTransport.shareCompany(data);
    }
    /**
     * 私人小客车合乘驾驶员行程发布接口
     * @param shareRoute
     * @throws Exception
     */
    @Override
    public String shareRoute(String shareRoute) throws Exception {
        ShareRoute data = JSON.parseObject(shareRoute, ShareRoute.class);
        return ministryOfTransport.shareRoute(data);
    }
    /**
     * 私人小客车合乘订单接口
     * @param shareOrder
     * @throws Exception
     */
    @Override
    public String shareOrder(String shareOrder) throws Exception {
        ShareOrder data = JSON.parseObject(shareOrder, ShareOrder.class);
        return ministryOfTransport.shareOrder(data);
    }
    /**
     * 私人小客车合乘订单支付接口
     * @param sharePay
     * @throws Exception
     */
    @Override
    public String sharePay(String sharePay) throws Exception {
        SharePay data = JSON.parseObject(sharePay, SharePay.class);
        return ministryOfTransport.sharePay(data);
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/ALiSendSms.java
New file
@@ -0,0 +1,123 @@
package com.sinata.ministryoftransport.util;
import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;
import com.google.gson.Gson;
import org.springframework.stereotype.Component;
import java.util.Map;
/**
 * 阿里云短信工具类
 */
@Component
public class ALiSendSms {
    // 设置鉴权参数,初始化客户端
    private DefaultProfile profile = DefaultProfile.getProfile(
            "cn-hangzhou",// 地域ID
            "LTAI4G9Zez9H4B36vakPXGy4",// 您的AccessKey ID
            "BOVPUeZndKVbrPOq6Ef5j6oiydB3XZ");// 您的AccessKey Secret
    private IAcsClient client = new DefaultAcsClient(profile);
    private static void log_print(String functionName, Object result) {
        Gson gson = new Gson();
        System.out.println("-------------------------------" + functionName + "-------------------------------");
        System.out.println(gson.toJson(result));
    }
    /**
     * 添加短信模板
     */
    public String addSmsTemplate() throws ClientException {
        CommonRequest addSmsTemplateRequest = new CommonRequest();
        addSmsTemplateRequest.setSysDomain("dysmsapi.aliyuncs.com");
        addSmsTemplateRequest.setSysAction("AddSmsTemplate");
        addSmsTemplateRequest.setSysVersion("2017-05-25");
        // 短信类型。0:验证码;1:短信通知;2:推广短信;3:国际/港澳台消息
        addSmsTemplateRequest.putQueryParameter("TemplateType", "0");
        // 模板名称,长度为1~30个字符
        addSmsTemplateRequest.putQueryParameter("TemplateName", "测试短信模板");
        // 模板内容,长度为1~500个字符
        addSmsTemplateRequest.putQueryParameter("TemplateContent", "您正在申请手机注册,验证码为:${code},5分钟内有效!");
        // 短信模板申请说明
        addSmsTemplateRequest.putQueryParameter("Remark", "测试");
        CommonResponse addSmsTemplateResponse = client.getCommonResponse(addSmsTemplateRequest);
        String data = addSmsTemplateResponse.getData();
        // 消除返回文本中的反转义字符
        String sData = data.replaceAll("'\'", "");
        log_print("addSmsTemplate", sData);
        Gson gson = new Gson();
        // 将字符串转换为Map类型,取TemplateCode字段值
        Map map = gson.fromJson(sData, Map.class);
        Object templateCode = map.get("TemplateCode");
        return templateCode.toString();
    }
    /**
     * 发送短信
     */
    public String sendSms(String phone, String templateCode, String json) throws ClientException {
        CommonRequest request = new CommonRequest();
        request.setSysDomain("dysmsapi.aliyuncs.com");
        request.setSysVersion("2017-05-25");
        request.setSysAction("SendSms");
        // 接收短信的手机号码
        request.putQueryParameter("PhoneNumbers", phone);
        // 短信签名名称。请在控制台签名管理页面签名名称一列查看(必须是已添加、并通过审核的短信签名)。
        request.putQueryParameter("SignName", "OK出行");
        // 短信模板ID
        request.putQueryParameter("TemplateCode", templateCode);
        // 短信模板变量对应的实际值,JSON格式。
        request.putQueryParameter("TemplateParam", json);
        CommonResponse commonResponse = client.getCommonResponse(request);
        String data = commonResponse.getData();
        String sData = data.replaceAll("'\'", "");
        log_print("sendSms", sData);
        return sData;
    }
    /**
     * 查询发送详情
     */
    private void querySendDetails(String bizId) throws ClientException {
        CommonRequest request = new CommonRequest();
        request.setSysDomain("dysmsapi.aliyuncs.com");
        request.setSysVersion("2017-05-25");
        request.setSysAction("QuerySendDetails");
        // 接收短信的手机号码
        request.putQueryParameter("PhoneNumber", "156xxxxxxxx");
        // 短信发送日期,支持查询最近30天的记录。格式为yyyyMMdd,例如20191010。
        request.putQueryParameter("SendDate", "20191010");
        // 分页记录数量
        request.putQueryParameter("PageSize", "10");
        // 分页当前页码
        request.putQueryParameter("CurrentPage", "1");
        // 发送回执ID,即发送流水号。
        request.putQueryParameter("BizId", bizId);
        CommonResponse response = client.getCommonResponse(request);
        log_print("querySendDetails", response.getData());
    }
    public static void main(String[] args) {
        ALiSendSms sendSmsDemo = new ALiSendSms();
        try {
            // 创建短信模板
            String templateCode = sendSmsDemo.addSmsTemplate();
            // 使用刚创建的短信模板发送短信
            String sData = sendSmsDemo.sendSms("156xxxxxxxx", templateCode, "{\"code\":\"8888\"}");
            Gson gson = new Gson();
            Map map = gson.fromJson(sData, Map.class);
            String bizId = map.get("BizId").toString();
            // 根据短信发送流水号查询短信发送情况
            sendSmsDemo.querySendDetails(bizId);
        } catch (ClientException e) {
            e.printStackTrace();
        }
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/FTPUtil.java
New file
@@ -0,0 +1,381 @@
package com.sinata.ministryoftransport.util;
import org.apache.commons.net.ftp.*;
import org.springframework.stereotype.Component;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
/**
 * FTP工具类
 */
@Component
public class FTPUtil {
    // ftp服务器地址
    private String hostname = "172.19.6.41";
    // ftp服务器端口号默认为21
    private Integer port = 21;
    // ftp登录账号
    private String username = "wycftp186";
    // ftp登录密码
    private String password = "@11mu15t86R!";
    private FTPSClient ftpClient = null;
    /**
     * 初始化ftp服务器
     */
    private boolean initFtpClient() {
        ftpClient = new FTPSClient("SSL");
        ftpClient.setControlEncoding("utf-8");
        try {
            System.out.println("connecting...ftp服务器:" + this.hostname + ":" + this.port);
            ftpClient.connect(hostname, port); // 连接ftp服务器
            ftpClient.login(username, password); // 登录ftp服务器
            int replyCode = ftpClient.getReplyCode(); // 是否成功登录服务器
            if (!FTPReply.isPositiveCompletion(replyCode)) {
                System.out.println("connect failed...ftp服务器:" + this.hostname + ":" + this.port);
                return false;
            }
            System.out.println("connect successfu...ftp服务器:" + this.hostname + ":" + this.port);
            return true;
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return false;
    }
    /**
     * 上传文件
     *
     * @param pathname
     *            ftp服务保存地址
     * @param fileName
     *            上传到ftp的文件名
     * @param originfilename
     *            待上传文件的名称(绝对地址) *
     * @return
     */
    public boolean uploadFile(String pathname, String fileName, String originfilename) {
        InputStream inputStream = null;
        try {
            System.out.println("开始上传文件");
            URL url =new URL(originfilename); // 创建URL
            URLConnection urlconn = url.openConnection(); // 试图连接并取得返回状态码
            urlconn.connect();
            HttpURLConnection httpconn =(HttpURLConnection)urlconn;
            int responseCode = httpconn.getResponseCode();
            if(responseCode != HttpURLConnection.HTTP_OK) {
                System.err.print("无法连接到");
                return false;
            } else {
                inputStream = urlconn.getInputStream();
            }
            initFtpClient();
            ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
            CreateDirecroty(pathname);
            ftpClient.makeDirectory(pathname);
            ftpClient.changeWorkingDirectory(pathname);
            // 每次数据连接之前,ftp client告诉ftp server开通一个端口来传输数据
            ftpClient.enterLocalPassiveMode();
            // 观察是否真的上传成功
            boolean storeFlag = ftpClient.storeFile(fileName, inputStream);
            System.err.println("storeFlag==" + storeFlag);
            inputStream.close();
            ftpClient.logout();
            System.out.println("上传文件成功");
        } catch (Exception e) {
            System.out.println("上传文件失败");
            e.printStackTrace();
        } finally {
            if (ftpClient.isConnected()) {
                try {
                    ftpClient.disconnect();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            if (null != inputStream) {
                try {
                    inputStream.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return true;
    }
    /**
     * 上传文件
     *
     * @param pathname
     *            ftp服务保存地址
     * @param fileName
     *            上传到ftp的文件名
     * @param inputStream
     *            输入文件流
     * @return
     */
    public boolean uploadFile(String pathname, String fileName, InputStream inputStream) {
        try {
            System.out.println("开始上传文件");
            initFtpClient();
            ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
            CreateDirecroty(pathname);
            ftpClient.makeDirectory(pathname);
            ftpClient.changeWorkingDirectory(pathname);
            ftpClient.storeFile(fileName, inputStream);
            inputStream.close();
            ftpClient.logout();
            System.out.println("上传文件成功");
        } catch (Exception e) {
            System.out.println("上传文件失败");
            e.printStackTrace();
        } finally {
            if (ftpClient.isConnected()) {
                try {
                    ftpClient.disconnect();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            if (null != inputStream) {
                try {
                    inputStream.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return true;
    }
    // 改变目录路径
    private boolean changeWorkingDirectory(String directory) {
        boolean flag = true;
        try {
            flag = ftpClient.changeWorkingDirectory(directory);
            if (flag) {
                System.out.println("进入文件夹" + directory + " 成功!");
            } else {
                System.out.println("进入文件夹" + directory + " 失败!开始创建文件夹");
            }
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }
        return flag;
    }
    // 创建多层目录文件,如果有ftp服务器已存在该文件,则不创建,如果无,则创建
    private boolean CreateDirecroty(String remote) throws IOException {
        boolean success = true;
        String directory = remote + "/";
        // 如果远程目录不存在,则递归创建远程服务器目录
        if (!directory.equalsIgnoreCase("/") && !changeWorkingDirectory(new String(directory))) {
            int start = 0;
            int end = 0;
            if (directory.startsWith("/")) {
                start = 1;
            } else {
                start = 0;
            }
            end = directory.indexOf("/", start);
            String path = "";
            String paths = "";
            while (true) {
                String subDirectory = new String(remote.substring(start, end).getBytes("GBK"), "iso-8859-1");
                path = path + "/" + subDirectory;
                if (!existFile(path)) {
                    if (makeDirectory(subDirectory)) {
                        changeWorkingDirectory(subDirectory);
                    } else {
                        System.out.println("创建目录[" + subDirectory + "]失败");
                        changeWorkingDirectory(subDirectory);
                    }
                } else {
                    changeWorkingDirectory(subDirectory);
                }
                paths = paths + "/" + subDirectory;
                start = end + 1;
                end = directory.indexOf("/", start);
                // 检查所有目录是否创建完毕
                if (end <= start) {
                    break;
                }
            }
        }
        return success;
    }
    // 判断ftp服务器文件是否存在
    private boolean existFile(String path) throws IOException {
        boolean flag = false;
        FTPFile[] ftpFileArr = ftpClient.listFiles(path);
        if (ftpFileArr.length > 0) {
            flag = true;
        }
        return flag;
    }
    // 创建目录
    private boolean makeDirectory(String dir) {
        boolean flag = true;
        try {
            flag = ftpClient.makeDirectory(dir);
            if (flag) {
                System.out.println("创建文件夹" + dir + " 成功!");
            } else {
                System.out.println("创建文件夹" + dir + " 失败!");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return flag;
    }
    /**
     * * 下载文件 *
     *
     * @param pathname
     *            FTP服务器文件目录 *
     * @param filename
     *            文件名称 *
     * @param localpath
     *            下载后的文件路径 *
     * @return
     */
    public boolean downloadFile(String pathname, String filename, String localpath) {
        boolean flag = false;
        OutputStream os = null;
        try {
            System.out.println("开始下载文件");
            initFtpClient();
            // 切换FTP目录
            boolean changeFlag = ftpClient.changeWorkingDirectory(pathname);
            System.err.println("changeFlag==" + changeFlag);
            ftpClient.enterLocalPassiveMode();
            ftpClient.setRemoteVerificationEnabled(false);
            // 查看有哪些文件夹 以确定切换的ftp路径正确
            String[] a = ftpClient.listNames();
            System.err.println(a[0]);
            FTPFile[] ftpFiles = ftpClient.listFiles();
            for (FTPFile file : ftpFiles) {
                if (filename.equalsIgnoreCase(file.getName())) {
                    File localFile = new File(localpath + "/" + file.getName());
                    os = new FileOutputStream(localFile);
                    ftpClient.retrieveFile(file.getName(), os);
                    os.close();
                }
            }
            ftpClient.logout();
            flag = true;
            System.out.println("下载文件成功");
        } catch (Exception e) {
            System.out.println("下载文件失败");
            e.printStackTrace();
        } finally {
            if (ftpClient.isConnected()) {
                try {
                    ftpClient.disconnect();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            if (null != os) {
                try {
                    os.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return flag;
    }
    /**
     * * 删除文件 *
     *
     * @param pathname
     *            FTP服务器保存目录 *
     * @param filename
     *            要删除的文件名称 *
     * @return
     */
    public boolean deleteFile(String pathname, String filename) {
        boolean flag = false;
        try {
            System.out.println("开始删除文件");
            initFtpClient();
            // 切换FTP目录
            ftpClient.changeWorkingDirectory(pathname);
            ftpClient.dele(filename);
            ftpClient.logout();
            flag = true;
            System.out.println("删除文件成功");
        } catch (Exception e) {
            System.out.println("删除文件失败");
            e.printStackTrace();
        } finally {
            if (ftpClient.isConnected()) {
                try {
                    ftpClient.disconnect();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return flag;
    }
    /**
     * 移动文件
     * @param fromFilePath  源文件完整地址
     * @param toFilePath    新文件完整地址
     * @return
     */
    public boolean moveFile(String fromFilePath, String toFilePath){
        boolean b = false;
        try {
            initFtpClient();
            b = ftpClient.rename(fromFilePath, toFilePath);//移动文件
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            if (ftpClient.isConnected()) {
                try {
                    ftpClient.disconnect();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        return b;
    }
    public static void main(String[] ages) throws IOException {
        FTPSClient ftpsClient = new FTPSClient("SSL");
        ftpsClient.connect("172.19.6.41", 21); //连接ftp服务器
        boolean wycftp256 = ftpsClient.login("wycftp256", "@yxHr1757e3!");//登录ftp服务器
        int replyCode = ftpsClient.getReplyCode(); //是否成功登录服务器
        if(!FTPReply.isPositiveCompletion(replyCode)){
            System.out.println("connect failed...ftp服务器:");
        }
        System.out.println("connect successful...ftp服务器:");
        ftpsClient.sendCommand("OPTS UTF8","ON");
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/MinistryOfTransport.java
New file
@@ -0,0 +1,1456 @@
package com.sinata.ministryoftransport.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sinata.ministryoftransport.model.*;
import com.sinata.ministryoftransport.util.httpClinet.HttpClientUtil;
import com.sinata.ministryoftransport.util.httpClinet.HttpResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;
/**
 * 交通部接口对接
 */
@Component
public class MinistryOfTransport {
    private final String CompanyId = "5306ZTSRQ50D";//公司标识
    private final String Source = "0";//消息来源标识
    private final String url = "http://123.59.106.162:48085";
    @Autowired
    private HttpClientUtil httpClientUtil;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
    private SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
    private SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMdd");
    /**
     * 上传企业基础信息
     */
    public String baseInfoCompany(BaseInfoCompany baseInfoCompany) throws Exception{
        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", baseInfoCompany.getCompanyName());//公司名称
        jsonObject.put("Identifier", baseInfoCompany.getIdentifier());//统一社会信用代码
        jsonObject.put("Address", baseInfoCompany.getAddress());//注册地行政区划代码
        jsonObject.put("BusinessScope", baseInfoCompany.getBusinessScope());//经营范围
        jsonObject.put("ContactAddress", baseInfoCompany.getContactAddress());//通信地址
        jsonObject.put("EconomicType", baseInfoCompany.getEconomicType());//经营业户经济类型
        jsonObject.put("RegCapital", baseInfoCompany.getRegCapital());//注册资本
        jsonObject.put("LegalName", baseInfoCompany.getLegalName());//法人代表姓名
        jsonObject.put("LegalID", baseInfoCompany.getLegalID());//法人代表身份证号
        jsonObject.put("LegalPhone", baseInfoCompany.getLegalPhone());//法人代表电话
        jsonObject.put("LegalPhoto", baseInfoCompany.getLegalPhoto());//法人代表身份证扫描件文件编号(.jpg)
        jsonObject.put("State", baseInfoCompany.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoCompany.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", baseInfoCompany.getUpdateTime());
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车平台公司营运规模信息接口
     */
    public String baseInfoCompanyStat(BaseInfoCompanyStat baseInfoCompanyStat) throws Exception{
        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", baseInfoCompanyStat.getVehicleNum());//平台注册网约车辆数
        jsonObject.put("DriverNum", baseInfoCompanyStat.getDriverNum());//平台注册驾驶员数
        jsonObject.put("Flag", baseInfoCompanyStat.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoCompanyStat.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车平台公司支付信息
     */
    public String baseInfoCompanyPay(BaseInfoCompanyPay baseInfoCompanyPay) throws Exception{
        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", baseInfoCompanyPay.getPayName());//银行或者非银行支付机构名称
        jsonObject.put("PayId", baseInfoCompanyPay.getPayId());//非银行支付机构支付业务许可证编号
        jsonObject.put("PayType", baseInfoCompanyPay.getPayType());//支付业务类型
        jsonObject.put("PayScope", baseInfoCompanyPay.getPayScope());//业务覆盖范围
        jsonObject.put("PrepareBank", baseInfoCompanyPay.getPrepareBank());//备付金存管银行
        jsonObject.put("CountDate", baseInfoCompanyPay.getCountDate());//结算周期
        jsonObject.put("State", baseInfoCompanyPay.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoCompanyPay.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoCompanyPay.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车平台公司服务机构
     */
    public String baseInfoCompanyService(BaseInfoCompanyService baseInfoCompanyService) throws Exception{
        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", baseInfoCompanyService.getAddress());//行政区划代码
        jsonObject.put("ServiceName", baseInfoCompanyService.getServiceName());//服务机构名称
        jsonObject.put("ServiceNo", baseInfoCompanyService.getServiceNo());//服务机构代码
        jsonObject.put("DetailAddress", baseInfoCompanyService.getDetailAddress());//服务机构地址
        jsonObject.put("ResponsibleName", baseInfoCompanyService.getResponsibleName());//服务机构负责人姓名
        jsonObject.put("ResponsiblePhone", baseInfoCompanyService.getResponsiblePhone());//负责人联系电话
        jsonObject.put("ManagerName", baseInfoCompanyService.getManagerName());//服务机构管理人姓名
        jsonObject.put("ManagerPhone", baseInfoCompanyService.getManagerPhone());//管理人联系电话
        jsonObject.put("ContactPhone", baseInfoCompanyService.getContactPhone());//服务机构紧急联系电话
        jsonObject.put("MailAddress", baseInfoCompanyService.getMailAddress());//行政文书送达邮寄地址
        jsonObject.put("CreateDate", Long.valueOf(sdf.format(baseInfoCompanyService.getCreateDate())));//服务机构设立日期
        jsonObject.put("State", baseInfoCompanyService.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoCompanyService.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoCompanyService.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车平台公司经营许可
     */
    public String baseInfoCompanyPermit(BaseInfoCompanyPermit baseInfoCompanyPermit) throws Exception{
        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", baseInfoCompanyPermit.getAddress());//许可地行政区划代码
        jsonObject.put("Certificate", baseInfoCompanyPermit.getCertificate());//网络预约出租车经营许可证号
        jsonObject.put("OperationArea", baseInfoCompanyPermit.getOperationArea());//经营区域
        jsonObject.put("OwnerName", baseInfoCompanyPermit.getOwnerName());//公司名称
        jsonObject.put("Organization", baseInfoCompanyPermit.getOrganization());//发证机构名称
        jsonObject.put("StartDate", Long.valueOf(sdf2.format(baseInfoCompanyPermit.getStartDate())));//有效期起YYYYMMDD
        jsonObject.put("StopDate", Long.valueOf(sdf2.format(baseInfoCompanyPermit.getStopDate())));//有效期止YYYYMMDD
        jsonObject.put("CertifyDate", Long.valueOf(sdf2.format(baseInfoCompanyPermit.getCertifyDate())));//初次发证日期YYYYMMDD
        jsonObject.put("State", baseInfoCompanyPermit.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoCompanyPermit.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoCompanyPermit.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车平台公司运价信息
     */
    public String baseInfoCompanyFare(BaseInfoCompanyFare baseInfoCompanyFare) throws Exception{
        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", baseInfoCompanyFare.getAddress());//运价适用地行政区划代码
        jsonObject.put("FareType", baseInfoCompanyFare.getFareType());//运价类型编码(由网约车平台公司统一编码,应确保唯一性)
        jsonObject.put("FareTypeNote", baseInfoCompanyFare.getFareTypeNote());//运价类型说明
        jsonObject.put("FareValidOn", Long.valueOf(sdf.format(baseInfoCompanyFare.getFareValidOn())));//运价有效期起YYYYMMDDhhmmss
        jsonObject.put("FareValidOff", Long.valueOf(sdf.format(baseInfoCompanyFare.getFareValidOff())));//运价有效止YYYYMMDDhhmmss
        jsonObject.put("StartFare", baseInfoCompanyFare.getStartFare().intValue());//起步价(元)
        jsonObject.put("StartMile", baseInfoCompanyFare.getStartMile());//起步里程(km)
        jsonObject.put("UnitPricePerMile", baseInfoCompanyFare.getUnitPricePerMile().intValue());//计程单价(按公里/元)
        jsonObject.put("UnitPricePerMinute", baseInfoCompanyFare.getUnitPricePerMinute().intValue());//计时单价(按分钟/元)
        jsonObject.put("UpPrice", baseInfoCompanyFare.getUpPrice().intValue());//单程加价单价(元)
        jsonObject.put("UpPriceStartMile", baseInfoCompanyFare.getUpPriceStartMile());//单程加价公里(km)
        jsonObject.put("MorningPeakTimeOn", baseInfoCompanyFare.getMorningPeakTimeOn());//营运早高峰时间起(HHmm 24小时)
        jsonObject.put("MorningPeakTimeOff", baseInfoCompanyFare.getMorningPeakTimeOff());//营运早高峰时间止(HHmm 24小时)
        jsonObject.put("EveningPeakTimeOn", baseInfoCompanyFare.getEveningPeakTimeOn());//营运晚高峰时间起(HHmm 24小时)
        jsonObject.put("EveningPeakTimeOff", baseInfoCompanyFare.getEveningPeakTimeOff());//营运晚高峰时间止(HHmm 24小时)
        jsonObject.put("OtherPeakTimeOn", baseInfoCompanyFare.getOtherPeakTimeOn());//其他营运高等时间起(HHmm 24小时)
        jsonObject.put("OtherPeakTineOff", baseInfoCompanyFare.getOtherPeakTineOff());//其他营运高等时间止(HHmm 24小时)
        jsonObject.put("PeakUnitPrice", baseInfoCompanyFare.getPeakUnitPrice().intValue());//高峰时间单程加价单价(元)
        jsonObject.put("PeakPriceStartMile", baseInfoCompanyFare.getPeakPriceStartMile());//高峰时间单程加价公里(km)
        jsonObject.put("LowSpeedPriceMinute", baseInfoCompanyFare.getLowSpeedPriceMinute().intValue());//低速计时加价(按分钟 元)
        jsonObject.put("NightPricePerMile", baseInfoCompanyFare.getNightPricePerMile().intValue());//夜间费(按公里 元)
        jsonObject.put("NightPricePerMinute", baseInfoCompanyFare.getNightPricePerMinute().intValue());//夜间费(按分钟 元)
        jsonObject.put("OtherPrice", baseInfoCompanyFare.getOtherPrice().intValue());//其它加价金额(元)
        jsonObject.put("State", baseInfoCompanyFare.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoCompanyFare.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoCompanyFare.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 车辆基本信息
     */
    public String baseInfoVehicle(BaseInfoVehicle baseInfoVehicle) throws Exception{
        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", baseInfoVehicle.getAddress());//车辆所在城市行政区划代码
        jsonObject.put("VehicleNo", baseInfoVehicle.getVehicleNo());//车辆号牌
        jsonObject.put("PlateColor", baseInfoVehicle.getPlateColor());//车牌颜色
        jsonObject.put("Seats", baseInfoVehicle.getSeats());//核定载客位
        jsonObject.put("Brand", baseInfoVehicle.getBrand());//车辆厂牌
        jsonObject.put("Model", baseInfoVehicle.getModel());//车辆型号
        jsonObject.put("VehicleType", baseInfoVehicle.getVehicleType());//车辆类型(以机动车行驶证为准)
        jsonObject.put("OwnerName", baseInfoVehicle.getOwnerName());//车辆所有人(以机动车行驶证为准)
        jsonObject.put("VehicleColor", baseInfoVehicle.getVehicleColor());//车身颜色
        jsonObject.put("EngineId", baseInfoVehicle.getEngineId());//发动机号(以机动车行驶证为准)
        jsonObject.put("VIN", baseInfoVehicle.getVIN());//车辆VIN码(以机动车行驶证为准)
        jsonObject.put("CertifyDateA", Long.valueOf(sdf2.format(baseInfoVehicle.getCertifyDateA())));//车辆注册日期(以机动车行驶证为准)YYYY-MM-DD
        jsonObject.put("FuelType", baseInfoVehicle.getFuelType());//车辆燃料类型
        jsonObject.put("EngineDisplace", baseInfoVehicle.getEngineDisplace());//发送机排量(毫升)
        jsonObject.put("PhotoId", baseInfoVehicle.getPhotoId());//车辆照片文件编号
        jsonObject.put("Certificate", baseInfoVehicle.getCertificate());//运输证字号
        jsonObject.put("TransAgency", baseInfoVehicle.getTransAgency());//车辆运输证发证机构
        jsonObject.put("TransArea", baseInfoVehicle.getTransArea());//车辆经营区域
        jsonObject.put("TransDateStart", Long.valueOf(sdf2.format(baseInfoVehicle.getTransDateStart())));//车辆运输证有效期起YYYYMMDD
        jsonObject.put("TransDateStop", Long.valueOf(sdf2.format(baseInfoVehicle.getTransDateStop())));//车辆运输证有效期止YYYYMMDD
        jsonObject.put("CertifyDateB", Long.valueOf(sdf2.format(baseInfoVehicle.getCertifyDateB())));//车辆初次登记日期YYYY-MM-DD
        jsonObject.put("FixState", baseInfoVehicle.getFixState());//车辆维修状态(0:未检修,1:已检修,2:未知)
        jsonObject.put("NextFixDate", Long.valueOf(sdf2.format(baseInfoVehicle.getNextFixDate())));//车辆下次年检时间YYYY-MM-DD
        jsonObject.put("CheckState", baseInfoVehicle.getCheckState());//车辆年度审验状态
        jsonObject.put("FeePrintId", baseInfoVehicle.getFeePrintId());//发票打印设备序列号
        jsonObject.put("GPSBrand", baseInfoVehicle.getGPSBrand());//卫星定位装置品牌
        jsonObject.put("GPSModel", baseInfoVehicle.getGPSModel());//卫星定位装置型号
        jsonObject.put("GPSIMEI", baseInfoVehicle.getGPSIMEI());//卫星定位装置IMEI号
        jsonObject.put("GPSInstallDate", Long.valueOf(sdf2.format(baseInfoVehicle.getGPSInstallDate())));//卫星定位设备安装日期YYYYMMDD
        jsonObject.put("RegisterDate", Long.valueOf(sdf2.format(baseInfoVehicle.getRegisterDate())));//报备日期(车辆信息向服务所在地出租车行政主管部门报备日期YYYYMMDD)
        jsonObject.put("CommercialType", baseInfoVehicle.getCommercialType());//服务类型(1:网络预约出租车,2:巡游出租汽车,3:私人小客车合乘)
        jsonObject.put("FareType", baseInfoVehicle.getFareType());//运价类型编码(与云间信息中一一对应)
        jsonObject.put("State", baseInfoVehicle.getSeats());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoVehicle.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoVehicle.getUpdateTime())));//YYYYMMDDhhmmss
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 车辆保险信息
     */
    public String baseInfoVehicleInsurance(BaseInfoVehicleInsurance baseInfoVehicleInsurance) throws Exception{
        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", baseInfoVehicleInsurance.getVehicleNo());//车辆号牌
        jsonObject.put("InsurCom", baseInfoVehicleInsurance.getInsurCom());//保险公司名称
        jsonObject.put("InsurNum", baseInfoVehicleInsurance.getInsurNum());//保险号
        jsonObject.put("InsurType", baseInfoVehicleInsurance.getInsurType());//保险类型
        jsonObject.put("InsurCount", baseInfoVehicleInsurance.getInsurCount());//保险金额(元)
        jsonObject.put("InsurEff", Long.valueOf(sdf2.format(baseInfoVehicleInsurance.getInsurEff())));//保险生效时间YYYYMMDD
        jsonObject.put("InsurExp", Long.valueOf(sdf2.format(baseInfoVehicleInsurance.getInsurExp())));//保险到期时间YYYYMMDD
        jsonObject.put("Flag", baseInfoVehicleInsurance.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoVehicleInsurance.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车车辆里程信息
     */
    public String baseInfoVehicleTotalMile(BaseInfoVehicleTotalMile baseInfoVehicleTotalMile) throws Exception{
        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", baseInfoVehicleTotalMile.getAddress());//注册地行政区划代码
        jsonObject.put("VehicleNo", baseInfoVehicleTotalMile.getVehicleNo());//车辆号牌
        jsonObject.put("TotalMile", baseInfoVehicleTotalMile.getTotalMile());//行驶总里程(km)
        jsonObject.put("Flag", baseInfoVehicleTotalMile.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoVehicleTotalMile.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员基本信息
     */
    public String baseInfoDriver(BaseInfoDriver baseInfoDriver) throws Exception{
        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", baseInfoDriver.getAddress());//注册地行政区划代码
        jsonObject.put("DriverName", baseInfoDriver.getDriverName());//机动车驾驶员姓名
        jsonObject.put("DriverPhone", baseInfoDriver.getDriverPhone());//驾驶员手机号
        jsonObject.put("DriverGender", baseInfoDriver.getDriverGender());//驾驶员性别
        jsonObject.put("DriverBirthday", null == baseInfoDriver.getDriverBirthday() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getDriverBirthday())));//出生日期YYYYMMDD
        jsonObject.put("DriverNationality", baseInfoDriver.getDriverNationality());//国籍
        jsonObject.put("DriverNation", baseInfoDriver.getDriverNation());//驾驶员民族
        jsonObject.put("DriverMaritalStatus", baseInfoDriver.getDriverMaritalStatus());//驾驶员婚姻状况(未婚,已婚,离异)
        jsonObject.put("DriverLanguageLevel", baseInfoDriver.getDriverLanguageLevel());//驾驶员外语能力
        jsonObject.put("DriverEducation", baseInfoDriver.getDriverEducation());//驾驶员学历
        jsonObject.put("DriverCensus", baseInfoDriver.getDriverCensus());//户口登记机关名称
        jsonObject.put("DriverAddress", baseInfoDriver.getDriverAddress());//户口住址或长住地址
        jsonObject.put("DriverContactAddress", baseInfoDriver.getDriverContactAddress());//驾驶员通信地址
        jsonObject.put("PhotoId", baseInfoDriver.getPhotoId());//驾驶员照片文件编号
        jsonObject.put("LicenseId", null != baseInfoDriver.getLicenseId() ? baseInfoDriver.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("LicensePhotoId", baseInfoDriver.getLicensePhotoId());//机动车驾驶证扫描件文件编号
        jsonObject.put("DriverType", baseInfoDriver.getDriverType());//准驾车型
        jsonObject.put("GetDriverLicenseDate", null == baseInfoDriver.getGetDriverLicenseDate() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getGetDriverLicenseDate())));//初次领取驾驶证日期YYYYMMDD
        jsonObject.put("DriverLicenseOn", null == baseInfoDriver.getDriverLicenseOn() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getDriverLicenseOn())));//驾驶证有效期限起YYYYMMDD
        jsonObject.put("DriverLicenseOff", null == baseInfoDriver.getDriverLicenseOff() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getDriverLicenseOff())));//驾驶证有效期限止YYYYMMDD
        jsonObject.put("TaxiDriver", baseInfoDriver.getTaxiDriver());//是否巡游出租汽车驾驶员(1:是,2:否)
        jsonObject.put("CertificateNo", baseInfoDriver.getCertificateNo());//网络预约出租汽车驾驶员资格证号
        jsonObject.put("NetworkCarIssueOrganization", baseInfoDriver.getNetworkCarIssueOrganization());//网络预约出租汽车驾驶员证发证机构
        jsonObject.put("NetworkCarIssueDate", null == baseInfoDriver.getNetworkCarIssueDate() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getNetworkCarIssueDate())));//资格证发证日期YYYYMMDD
        jsonObject.put("GetNetworkCarProofDate", null == baseInfoDriver.getGetNetworkCarProofDate() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getGetNetworkCarProofDate())));//初次领取资格证日期YYYYMMDD
        jsonObject.put("NetworkCarProofOn", null == baseInfoDriver.getNetworkCarProofOn() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getNetworkCarProofOn())));//资格证有效起始日期YYYYMMDD
        jsonObject.put("NetworkCarProofOff", null == baseInfoDriver.getNetworkCarProofOff() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getNetworkCarProofOff())));//资格证有截止日期YYYYMMDD
        jsonObject.put("RegisterDate", null == baseInfoDriver.getRegisterDate() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getRegisterDate())));//报备日期(驾驶员信息向服务所在地出租车行政主管部门报备日期)
        jsonObject.put("FullTimeDriver", baseInfoDriver.getFullTimeDriver());//是否专职驾驶员(1:是,0:否)
        jsonObject.put("InDriverBlacklist", baseInfoDriver.getInDriverBlacklist());//是否在驾驶员黑名单内(1:是,0:否)
        jsonObject.put("CommercialType", baseInfoDriver.getCommercialType());//服务类型(1:网络预约出租汽车,2:巡游出租汽车,3:私人小客车合乘)
        jsonObject.put("ContractCompany", baseInfoDriver.getContractCompany());//驾驶员合同签署公司
        jsonObject.put("ContractOn", null == baseInfoDriver.getContractOn() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getContractOn())));//合同有效期起YYYYMMDD
        jsonObject.put("ContractOff", null == baseInfoDriver.getContractOff() ? 0 : Long.valueOf(sdf2.format(baseInfoDriver.getContractOff())));//合同有效期止YYYYMMDD
        jsonObject.put("EmergencyContact", baseInfoDriver.getEmergencyContact());//紧急情况联系人
        jsonObject.put("EmergencyContactPhone", baseInfoDriver.getEmergencyContactPhone());//紧急情况联系人电话
        jsonObject.put("EmergencyContactAddress", baseInfoDriver.getEmergencyContactAddress());//紧急情况联系人通信地址
        jsonObject.put("State", baseInfoDriver.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoDriver.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoDriver.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 网约车驾驶员培训信息
     */
    public String baseInfoDriverEducate(BaseInfoDriverEducate baseInfoDriverEducate) throws Exception{
        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", baseInfoDriverEducate.getAddress());//注册地行政区划代码
        jsonObject.put("LicenseId", null != baseInfoDriverEducate.getLicenseId() ? baseInfoDriverEducate.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("CourseName", baseInfoDriverEducate.getCourseName());//驾驶员培训课程名称
        jsonObject.put("CourseDate", Long.valueOf(sdf2.format(baseInfoDriverEducate.getCourseDate())));//培训课程日期YYYYMMDD
        jsonObject.put("StartTime", baseInfoDriverEducate.getStartTime());//培训开始时间
        jsonObject.put("StopTime", baseInfoDriverEducate.getStopTime());//培训结束时间
        jsonObject.put("Duration", baseInfoDriverEducate.getDuration());//培训时长
        jsonObject.put("Flag", baseInfoDriverEducate.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoDriverEducate.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员移动终端信息
     */
    public String baseInfoDriverApp(BaseInfoDriverApp baseInfoDriverApp) throws Exception{
        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", baseInfoDriverApp.getAddress());//注册地行政区划代码
        jsonObject.put("LicenseId", null != baseInfoDriverApp.getLicenseId() ? baseInfoDriverApp.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("DriverPhone", baseInfoDriverApp.getDriverPhone());//驾驶员手机号
        jsonObject.put("NetType", baseInfoDriverApp.getNetType());//手机运营商(1:中国联通,2:中国移动,3:中国电信,4:其他)
        jsonObject.put("AppVersion", baseInfoDriverApp.getAppVersion());//使用APP版本号
        jsonObject.put("MapType", baseInfoDriverApp.getMapType());//使用地图类型(1:百度地图,2:高德地图,3:其他)
        jsonObject.put("State", baseInfoDriverApp.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoDriverApp.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoDriverApp.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员统计信息
     */
    public String baseInfoDriverStat(BaseInfoDriverStat baseInfoDriverStat) throws Exception{
        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", baseInfoDriverStat.getAddress());//注册地行政区划代码
        jsonObject.put("LicenseId", null != baseInfoDriverStat.getLicenseId() ? baseInfoDriverStat.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("Cycle", Long.valueOf(sdf2.format(baseInfoDriverStat.getCycle())));//统计周期(统计周期按月,内容填写统计月份YYYYMM)
        jsonObject.put("OrderCount", baseInfoDriverStat.getOrderCount());//完成订单次数
        jsonObject.put("TrafficViolationCount", baseInfoDriverStat.getTrafficViolationCount());//交通违章次数
        jsonObject.put("ComplainedCount", baseInfoDriverStat.getComplainedCount());//被投诉次数
        jsonObject.put("Flag", baseInfoDriverStat.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoDriverStat.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 乘客基本信息
     */
    public String baseInfoPassenger(BaseInfoPassenger baseInfoPassenger) throws Exception{
        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", Long.valueOf(sdf2.format(baseInfoPassenger.getRegisterDate())));//注册日期YYYYMMDD
        jsonObject.put("PassengerPhone", null != baseInfoPassenger.getPassengerPhone() ? baseInfoPassenger.getPassengerPhone() : "");//乘客手机号
        jsonObject.put("PassengerName", null != baseInfoPassenger.getPassengerName() ? baseInfoPassenger.getPassengerName() : "");//乘客称谓
        jsonObject.put("PassengerGender", null != baseInfoPassenger.getPassengerGender() ? baseInfoPassenger.getPassengerGender() : "");//乘客性别
        jsonObject.put("State", baseInfoPassenger.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", baseInfoPassenger.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(baseInfoPassenger.getUpdateTime())));
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 订单发起接口
     */
    public String orderCreate(OrderCreate orderCreate) throws Exception{
        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", orderCreate.getAddress());//发起第行政区划代码
        jsonObject.put("OrderId", orderCreate.getOrderId());//订单编号
        jsonObject.put("DepartTime", Long.valueOf(sdf.format(orderCreate.getDepartTime())));//预计用车时间YYYYMMDDhhmmss
        jsonObject.put("OrderTime", Long.valueOf(sdf.format(orderCreate.getOrderTime())));//订单发起时间YYYYMMDDhhmmss
        jsonObject.put("PassengerNote", orderCreate.getPassengerNote());//乘客备注
        jsonObject.put("Departure", orderCreate.getDeparture());//预计出发地点详细地址
        jsonObject.put("DepLongitude", Double.valueOf(orderCreate.getDepLongitude() * 1000000).intValue());//预计出发地点经度
        jsonObject.put("DepLatitude", Double.valueOf(orderCreate.getDepLatitude() * 1000000).intValue());//预计出发地点纬度
        jsonObject.put("Destination", orderCreate.getDestination());//预计目的地
        jsonObject.put("DestLongitude", Double.valueOf(orderCreate.getDestLongitude() * 1000000).intValue());//预计目的地经度
        jsonObject.put("DestLatitude", Double.valueOf(orderCreate.getDestLatitude() * 1000000).intValue());//预计目的地纬度
        jsonObject.put("Encrypt", orderCreate.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("FareType", orderCreate.getFareType());//运价类型编码
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 订单成功接口
     */
    public String orderMatch(OrderMatch orderMatch) throws Exception{
        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", orderMatch.getAddress());//发起地行政区划代码
        jsonObject.put("OrderId", orderMatch.getOrderId());//订单编号
        jsonObject.put("Longitude", Double.valueOf(orderMatch.getLongitude() * 1000000).intValue());//车辆经度
        jsonObject.put("Latitude", Double.valueOf(orderMatch.getLatitude() * 1000000).intValue());//车辆纬度
        jsonObject.put("Encrypt", orderMatch.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("LicenseId", null != orderMatch.getLicenseId() ? orderMatch.getLicenseId() : "");//机动车驾驶证编号
        jsonObject.put("DriverPhone", orderMatch.getDriverPhone());//驾驶员手机号
        jsonObject.put("VehicleNo", orderMatch.getVehicleNo());//车辆号牌
        jsonObject.put("DistributeTime", Long.valueOf(sdf.format(orderMatch.getDistributeTime())));//派单成功时间YYYYMMDDhhmmss
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 订单撤销接口
     */
    public String orderCancel(OrderCancel orderCancel) throws Exception{
        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", orderCancel.getAddress());//上车地点行政区划代码
        jsonObject.put("OrderId", orderCancel.getOrderId());//订单编号
        jsonObject.put("OrderTime", Long.valueOf(sdf.format(orderCancel.getOrderTime())));//订单时间YYYYMMDDhhmmss
        jsonObject.put("CancelTime", Long.valueOf(sdf.format(orderCancel.getCancelTime())));//订单撤销时间YYYYMMDDhhmmss
        jsonObject.put("Operator", orderCancel.getOperator());//撤销发起方(1:乘客,2:驾驶员,3:平台公司)
        jsonObject.put("CancelTypeCode", orderCancel.getCancelTypeCode());//机动车驾驶证编号
        jsonObject.put("CancelReason", orderCancel.getCancelReason());//撤销或违约原因
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 车辆经营上线接口
     */
    public String operateLogin(OperateLogin operateLogin) throws Exception{
        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", null != operateLogin.getLicenseId() ? operateLogin.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("VehicleNo", operateLogin.getVehicleNo());//车辆号牌
        jsonObject.put("LoginTime", Long.valueOf(sdf.format(operateLogin.getLoginTime())));//车辆经营上线时间YYYYMMDDhhmmss
        jsonObject.put("Longitude", Double.valueOf(operateLogin.getLongitude() * 1000000).intValue());//上线经度
        jsonObject.put("Latitude", Double.valueOf(operateLogin.getLatitude() * 1000000).intValue());//上线纬度
        jsonObject.put("Encrypt", operateLogin.getEncrypt());//坐标加密标识(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(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 车辆经营下线接口
     */
    public String operateLogout(OperateLogout operateLogout) throws Exception{
        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", null != operateLogout.getLicenseId() ? operateLogout.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("VehicleNo", operateLogout.getVehicleNo());//车辆号牌
        jsonObject.put("LogoutTime", Long.valueOf(sdf.format(operateLogout.getLogoutTime())));//车辆经营下线时间YYYYMMDDhhmmss
        jsonObject.put("Longitude", Double.valueOf(operateLogout.getLongitude() * 1000000).intValue());//下线经度
        jsonObject.put("Latitude", Double.valueOf(operateLogout.getLatitude() * 1000000).intValue());//下线纬度
        jsonObject.put("Encrypt", operateLogout.getEncrypt());//坐标加密标识(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(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 经营出发接口
     */
    public String operateDepart(OperateDepart operateDepart) throws Exception{
        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", operateDepart.getOrderId());//订单号
        jsonObject.put("LicenseId", null != operateDepart.getLicenseId() ? operateDepart.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("FareType", operateDepart.getFareType());//运价类型编码
        jsonObject.put("VehicleNo", operateDepart.getVehicleNo());//车辆号牌
        jsonObject.put("DepLongitude", Double.valueOf(operateDepart.getDepLongitude() * 1000000).intValue());//车辆出发经度
        jsonObject.put("DepLatitude", Double.valueOf(operateDepart.getDepLatitude() * 1000000).intValue());//车辆出发纬度
        jsonObject.put("Encrypt", operateDepart.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("DepTime", Long.valueOf(sdf.format(operateDepart.getDepTime())));//上车时间YYYYMMDDhhmmss
        jsonObject.put("WaitMile", operateDepart.getWaitMile());//空驶里程(km)
        jsonObject.put("WaitTime", operateDepart.getWaitTime());//等待时间(秒)
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 经营到达接口
     */
    public String operateArrive(OperateArrive operateArrive) throws Exception{
        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", operateArrive.getOrderId());//订单号
        jsonObject.put("DestLongitude", Double.valueOf(operateArrive.getDestLongitude() * 1000000).intValue());//车辆到达经度
        jsonObject.put("DestLatitude", Double.valueOf(operateArrive.getDestLatitude() * 1000000).intValue());//车辆到达纬度
        jsonObject.put("Encrypt", operateArrive.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("DestTime", Long.valueOf(sdf.format(operateArrive.getDestTime())));//下车时间YYYYMMDDhhmmss
        jsonObject.put("DriveMile", operateArrive.getDriveMile());//载客里程(km)
        jsonObject.put("DriveTime", operateArrive.getDriveTime());//载客时间(秒)
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 经营支付接口
     */
    public String operatePay(OperatePay operatePay) throws Exception{
        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", operatePay.getOrderId());//订单号
        jsonObject.put("OnArea", operatePay.getOnArea());//上车位置行政区划代码
        jsonObject.put("DriverName", operatePay.getDriverName());//机动车驾驶员
        jsonObject.put("LicenseId", null != operatePay.getLicenseId() ? operatePay.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("FareType", operatePay.getFareType());//运价类型编码(由网约车公司定义,与运价信息接口保持一街)
        jsonObject.put("VehicleNo", operatePay.getVehicleNo());//车辆号牌
        jsonObject.put("BookDepTime", Long.valueOf(sdf.format(operatePay.getBookDepTime())));//预计上车时间YYYYMMDDhhmmss
        jsonObject.put("WaitTime", operatePay.getWaitTime());//等待时间(秒)
        jsonObject.put("DepLongitude", Double.valueOf(operatePay.getDepLongitude() * 1000000).intValue());//车辆出发经度
        jsonObject.put("DepLatitude", Double.valueOf(operatePay.getDepLatitude() * 1000000).intValue());//车辆出发纬度
        jsonObject.put("DepArea", operatePay.getDepArea());//上车点
        jsonObject.put("DepTime", Long.valueOf(sdf.format(operatePay.getDepTime())));//上车时间YYYYMMDDhhmmss
        jsonObject.put("DestLongitude", Double.valueOf(operatePay.getDestLongitude() * 1000000).intValue());//车辆到达经度
        jsonObject.put("DestLatitude", Double.valueOf(operatePay.getDestLatitude() * 1000000).intValue());//车辆到达纬度
        jsonObject.put("DestArea", operatePay.getDestArea());//下车地点
        jsonObject.put("DestTime", Long.valueOf(sdf.format(operatePay.getDestTime())));//下车时间YYYYMMDDhhmmss
        jsonObject.put("BookModel", operatePay.getBookModel());//预定车型
        jsonObject.put("Model", operatePay.getModel());//实际使用车型
        jsonObject.put("DriveMile", operatePay.getDriveMile());//载客里程(km)
        jsonObject.put("DriveTime", operatePay.getDriveTime());//载客时间(秒)
        jsonObject.put("WaitMile", operatePay.getWaitMile());//空驶里程(km)
        jsonObject.put("FactPrice", operatePay.getFactPrice());//实收金额(元)
        jsonObject.put("Price", operatePay.getPrice());//应收金额(元)
        jsonObject.put("CashPrice", operatePay.getCashPrice());//现金支付金额(元)
        jsonObject.put("LineName", operatePay.getLineName());//电子支付机构
        jsonObject.put("LinePrice", operatePay.getLinePrice());//电子支付金额(元)
        jsonObject.put("PosName", operatePay.getPosName());//POS机支付机构
        jsonObject.put("PosPrice", operatePay.getPosPrice());//POS机支付金额(元)
        jsonObject.put("BenfitPrice", operatePay.getBenfitPrice());//优惠金额(元)
        jsonObject.put("BookTip", operatePay.getBookTip());//预约服务费(元)
        jsonObject.put("PassengerTip", operatePay.getPassengerTip());//附加费(元)
        jsonObject.put("PeakUpPrice", operatePay.getPeakUpPrice());//高峰时段时间加价金额(元)
        jsonObject.put("NightUpPrice", operatePay.getNightUpPrice());//夜间时段里程加价金额(元)
        jsonObject.put("FarUpPrice", operatePay.getFarUpPrice());//远途加价金额(元)
        jsonObject.put("OtherUpPrice", operatePay.getOtherUpPrice());//其他加价金额(元)
        jsonObject.put("PayState", operatePay.getPayState());//结算状态(0:未结算,1:已结算,2:未知)
        jsonObject.put("PayTime", Long.valueOf(sdf.format(operatePay.getPayTime())));//乘客结算时间YYYYMMDDhhmmss
        jsonObject.put("OrderMatchTime", Long.valueOf(sdf.format(operatePay.getOrderMatchTime())));//订单完成时间YYYYMMDDhhmmss
        jsonObject.put("InvoiceStatus", operatePay.getInvoiceStatus());//发票状态(0:未开票,1:已开票,2:未知)
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员定位信息
     */
    public String positionDriver(PositionDriver positionDriver) throws Exception{
        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", null != positionDriver.getLicenseId() ? positionDriver.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("DriverRegionCode", positionDriver.getDriverRegionCode());//行政区划代码
        jsonObject.put("VehicleNo", positionDriver.getVehicleNo());//车辆号牌
        jsonObject.put("PositionTime", positionDriver.getPositionTime());//定位时间(时间戳)
        jsonObject.put("Longitude", Double.valueOf(positionDriver.getLongitude() * 1000000).intValue());//经度
        jsonObject.put("Latitude", Double.valueOf(positionDriver.getLatitude() * 1000000).intValue());//纬度
        jsonObject.put("Encrypt", positionDriver.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("Direction", positionDriver.getDirection().intValue());//方向角
        jsonObject.put("Elevation", positionDriver.getElevation().intValue());//海拔高度
        jsonObject.put("Speed", positionDriver.getSpeed());//瞬时速度(km/h)
        jsonObject.put("BizStatus", positionDriver.getBizStatus());//营运状态(1:载客,2:接单,3:空驶,4:停运)
        jsonObject.put("OrderId", positionDriver.getOrderId());//订单编号
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 车辆定位信息
     */
    public String positionVehicle(PositionVehicle positionVehicle) throws Exception{
        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", positionVehicle.getVehicleNo());//车辆号牌
        jsonObject.put("VehicleRegionCode", positionVehicle.getVehicleRegionCode());//行政区划代码
        jsonObject.put("PositionTime", positionVehicle.getPositionTime());//定位时间(时间戳)
        jsonObject.put("Longitude", Double.valueOf(positionVehicle.getLongitude() * 1000000).intValue());//经度
        jsonObject.put("Latitude", Double.valueOf(positionVehicle.getLatitude() * 1000000).intValue());//纬度
        jsonObject.put("Speed", positionVehicle.getSpeed());//瞬时速度(km/h)
        jsonObject.put("Direction", positionVehicle.getDirection().intValue());//方向角
        jsonObject.put("Elevation", positionVehicle.getElevation().intValue());//海拔高度
        jsonObject.put("Mileage", positionVehicle.getMileage());//行驶里程(KM)
        jsonObject.put("Encrypt", positionVehicle.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("WarnStatus", positionVehicle.getWarnStatus());//预警状态
        jsonObject.put("VehStatus", positionVehicle.getVehStatus());//车辆状态
        jsonObject.put("BizStatus", positionVehicle.getBizStatus());//营运状态(1:载客,2:接单,3:空驶,4:停运)
        jsonObject.put("OrderId", positionVehicle.getOrderId());//订单编号(非营运状态下填"0")
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 乘客评价信息
     */
    public String ratedPassenger(RatedPassenger ratedPassenger) throws Exception{
        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", ratedPassenger.getOrderId());//订单号
        jsonObject.put("EvaluateTime", Long.valueOf(sdf.format(ratedPassenger.getEvaluateTime())));//评价时间YYYYMMDDhhmms
        jsonObject.put("ServiceScore", ratedPassenger.getServiceScore());//服务满意度(五分制)
        jsonObject.put("DriverScore", ratedPassenger.getDriverScore());//驾驶员满意度(五分制)
        jsonObject.put("VehicleScore", ratedPassenger.getVehicleScore());//车辆满意度(五分制)
        jsonObject.put("Detail", ratedPassenger.getDetail());//评价内容
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 乘客投诉信息
     */
    public String ratedPassengerComplaint(RatedPassengerComplaint ratedPassengerComplaint) throws Exception{
        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", ratedPassengerComplaint.getOrderId());//订单号
        jsonObject.put("ComplaintTime", Long.valueOf(sdf.format(ratedPassengerComplaint.getComplaintTime())));//投诉时间YYYYMMDDhhmms
        jsonObject.put("Detail", ratedPassengerComplaint.getDetail());//投诉内容
        jsonObject.put("Result", ratedPassengerComplaint.getResult());//处理结果
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员处罚信息
     */
    public String ratedDriverPunish(RatedDriverPunish ratedDriverPunish) throws Exception{
        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", null != ratedDriverPunish.getLicenseId() ? ratedDriverPunish.getLicenseId() : "");//机动车驾驶证编号
        jsonObject.put("PunishTime", Long.valueOf(sdf.format(ratedDriverPunish.getPunishTime())));//处罚时间YYYYMMDDhhmms
        jsonObject.put("PunishReason", ratedDriverPunish.getPunishReason());//处罚原因
        jsonObject.put("PunishReault", ratedDriverPunish.getPunishReault());//处罚结果
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 驾驶员信誉信息
     */
    public String ratedDriver(RatedDriver ratedDriver) throws Exception{
        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", null != ratedDriver.getLicenseId() ? ratedDriver.getLicenseId() : "");//机动车驾驶证编号
        jsonObject.put("Level", ratedDriver.getLevel());//服务质量信誉等级(五分制)
        jsonObject.put("TestDate", Long.valueOf(sdf2.format(ratedDriver.getTestDate())));//服务质量信誉考核日期YYYYMMDD
        jsonObject.put("TestDepartment", ratedDriver.getTestDepartment());//服务质量信誉考核机构
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 私人小客车合乘信息服务平台基本信息
     */
    public String shareCompany(ShareCompany shareCompany) throws Exception{
        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", shareCompany.getCompanyName());//公司名称
        jsonObject.put("Identifier", shareCompany.getIdentifier());//统一社会信用代码
        jsonObject.put("Address", shareCompany.getAddress());//注册地行政区划代码
        jsonObject.put("ContactAddress", shareCompany.getContactAddress());//通信地址
        jsonObject.put("EconomicType", shareCompany.getEconomicType());//经营业户经济类型
        jsonObject.put("LegalName", shareCompany.getLegalName());//法人代表姓名(按照营业执照填写)
        jsonObject.put("LegalPhone", shareCompany.getLegalPhone());//法人代表电话
        jsonObject.put("State", shareCompany.getState());//状态(0:有效,1:失效)
        jsonObject.put("Flag", shareCompany.getFlag());//操作标识(1:新增,2:更新,3:删除)
        jsonObject.put("UpdateTime", Long.valueOf(sdf.format(shareCompany.getUpdateTime())));//更新时间YYYYMMDDhhmmss
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 私人小客车合乘驾驶员行程发布接口
     */
    public String shareRoute(ShareRoute shareRoute) throws Exception{
        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", shareRoute.getAddress());//行政区划代码
        jsonObject.put("RouteId", shareRoute.getRouteId());//驾驶员发起行程编号
        jsonObject.put("DriverName", shareRoute.getDriverName());//驾驶员姓名
        jsonObject.put("DriverPhone", shareRoute.getDriverPhone());//驾驶员手机号
        jsonObject.put("LicenseId", null != shareRoute.getLicenseId() ? shareRoute.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("VehicleNo", shareRoute.getVehicleNo());//车辆号牌
        jsonObject.put("Departure", shareRoute.getDeparture());//行程出发地点
        jsonObject.put("DepLongitude", Double.valueOf(shareRoute.getDepLongitude() * 1000000).intValue());//车辆出发经度
        jsonObject.put("DepLatitude", Double.valueOf(shareRoute.getDepLatitude() * 1000000).intValue());//车辆出发纬度
        jsonObject.put("Destination", shareRoute.getDestination());//行程到达地点
        jsonObject.put("DestLongitude", Double.valueOf(shareRoute.getDestLongitude() * 1000000).intValue());//到达地经度
        jsonObject.put("DestLatitude", Double.valueOf(shareRoute.getDestLatitude() * 1000000).intValue());//到达纬度
        jsonObject.put("Encrypt", shareRoute.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("RouteCreateTime", Long.valueOf(sdf.format(shareRoute.getRouteCreateTime())));//行程发布时间YYYYMMDDhhmmss
        jsonObject.put("RouteMile", shareRoute.getRouteMile());//行程预计里程(km)
        jsonObject.put("RouteNote", shareRoute.getRouteNote());//行程备注
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 私人小客车合乘订单接口
     */
    public String shareOrder(ShareOrder shareOrder) throws Exception{
        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", shareOrder.getAddress());//行政区划代码
        jsonObject.put("RouteId", shareOrder.getRouteId());//驾驶员发起行程编号
        jsonObject.put("OrderId", shareOrder.getOrderId());//乘客合乘订单号
        jsonObject.put("BookDepartTime", Integer.valueOf(sdf.format(shareOrder.getBookDepartTime())));//预计上车时间YYYYMMDDhhmmss
        jsonObject.put("Departure", shareOrder.getDeparture());//预计上车地点
        jsonObject.put("DepLongitude", Double.valueOf(shareOrder.getDepLongitude() * 1000000).intValue());//预计上车地点经度
        jsonObject.put("DepLatitude", Double.valueOf(shareOrder.getDepLatitude() * 1000000).intValue());//预计上车地点纬度
        jsonObject.put("Destination", shareOrder.getDestination());//预计下车地点
        jsonObject.put("DestLongitude", Double.valueOf(shareOrder.getDestLongitude() * 1000000).intValue());//预计下车地点经度
        jsonObject.put("DestLatitude", Double.valueOf(shareOrder.getDestLatitude() * 1000000).intValue());//预计下车地点纬度
        jsonObject.put("Encrypt", shareOrder.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("OrderEnsureTime", Integer.valueOf(sdf.format(shareOrder.getOrderEnsureTime())));//订单确认时间YYYYMMDDhhmmss
        jsonObject.put("PassengerNum", shareOrder.getPassengerNum());//乘客人数
        jsonObject.put("PassengerNote", shareOrder.getPassengerNote());//乘客备注
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 私人小客车合乘订单支付接口
     */
    public String sharePay(SharePay sharePay) throws Exception{
        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", sharePay.getAddress());//行政区划代码
        jsonObject.put("RouteId", sharePay.getRouteId());//驾驶员发起行程编号
        jsonObject.put("OrderId", sharePay.getOrderId());//乘客合乘订单号
        jsonObject.put("DriverPhone", sharePay.getDriverPhone());//驾驶员手机号
        jsonObject.put("LicenseId", null != sharePay.getLicenseId() ? sharePay.getLicenseId() : "");//机动车驾驶证号
        jsonObject.put("VehicleNo", sharePay.getVehicleNo());//车辆号牌
        jsonObject.put("FareType", sharePay.getFareType());//运价类型编码
        jsonObject.put("BookDepartTime", Integer.valueOf(sdf.format(sharePay.getBookDepartTime())));//预计上车时间YYYYMMDDhhmmss
        jsonObject.put("DepartTime", Integer.valueOf(sdf.format(sharePay.getDepartTime())));//实际上车时间YYYYMMDDhhmmss
        jsonObject.put("Departure", sharePay.getDeparture());//上车地点
        jsonObject.put("DepLongitude", Double.valueOf(sharePay.getDepLongitude() * 1000000).intValue());//上车地点经度
        jsonObject.put("DepLatitude", Double.valueOf(sharePay.getDepLatitude() * 1000000).intValue());//上车地点纬度
        jsonObject.put("DestTime", Integer.valueOf(sdf.format(sharePay.getDestTime())));//下车时间YYYYMMDDhhmmss
        jsonObject.put("Destination", sharePay.getDestination());//下车地点
        jsonObject.put("DestLongitude", Double.valueOf(sharePay.getDestLongitude() * 1000000).intValue());//下车地点经度
        jsonObject.put("DestLatitude", Double.valueOf(sharePay.getDestLatitude() * 1000000).intValue());//下车地点纬度
        jsonObject.put("Encrypt", sharePay.getEncrypt());//坐标加密标识(1:GCJ-02测绘局标准,2:WGS84 GPS标准,3:BD-09百度标准,4:CGCS2000北斗标准,0:其他)
        jsonObject.put("DriveMile", sharePay.getDriveMile());//载客里程(km)
        jsonObject.put("DriveTime", sharePay.getDriveTime());//载客时间(秒)
        jsonObject.put("FactPrice", sharePay.getFactPrice());//实收金额(元)
        jsonObject.put("Price", sharePay.getPrice());//应收金额(元)
        jsonObject.put("CashPrice", sharePay.getCashPrice());//现金支付金额(元)
        jsonObject.put("LineName", sharePay.getLineName());//电子支付机构
        jsonObject.put("LinePrice", sharePay.getLinePrice());//电子支付金额(元)
        jsonObject.put("BenfitPrice", sharePay.getBenfitPrice());//优惠金额(元)
        jsonObject.put("ShareFuelFee", sharePay.getShareFuelFee());//燃料成本分摊金额(元)
        jsonObject.put("ShareHighwayToll", sharePay.getShareHighwayToll());//路桥通行分摊金额(元)
        jsonObject.put("PassengerTip", sharePay.getPassengerTip());//附加费(元)
        jsonObject.put("ShareOther", sharePay.getShareOther());//其他费用分摊金额(元)
        jsonObject.put("PayState", sharePay.getPayState());//结算状态(0:未结算,1:已结算,2:未知)
        jsonObject.put("PassengerNum", sharePay.getPassengerNum());//乘客人数
        jsonObject.put("PayTime", Integer.valueOf(sdf.format(sharePay.getPayTime())));//乘客结算时间YYYYMMDDhhmmss
        jsonObject.put("OrderMatchTime", Integer.valueOf(sdf.format(sharePay.getOrderMatchTime())));//订单完成时间YYYYMMDDhhmmss
        data.put("CompanyId", CompanyId);
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put(IPCType, jsonObject);
        Map<String, String> header = new HashMap<>();
        header.put("connection", "keep-alive");
        header.put("content-type", "application/json; charset=UTF-8");
        header.put("accept", "application/json");
        header.put("accept-encoding", "gzip");
        header.put("accept-charset", "utf-8");
        HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json");
        if(httpResult.getCode() == 200){
            analysisResult(httpResult.getData());
        }
        return JSON.toJSONString(httpResult);
    }
    /**
     * 处理返回结果
     * @param result
     */
    private void analysisResult(String result){
        JSONObject jsonObject = JSON.parseObject(result);
        if(null == jsonObject){
            System.err.println("请求接口出错!");
            return;
        }
        int code = (Integer)jsonObject.get("status");
        if(code == 200){
            System.err.println("(成功)服务器已成功处理了请求");
        }
        if(code == 201){
            System.err.println("请求已经完成并一个新的返回资源被创建");
        }
        if(code == 400){
            System.err.println("(错误请求)服务器不理解请求的语法");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 401){
            System.err.println("(未授权)请求要求身份验证");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 403){
            System.err.println("(禁止)服务器拒绝请求");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 404){
            System.err.println("(未找到)服务器找不到请求的网页");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 500){
            System.err.println("服务器遭遇异常阻止了当前请求的执行");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 502){
            System.err.println("(错误网关)服务器作为网关或代理,从上游服务器收到无效响应");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 702){
            System.err.println("请求文件不存在");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 948){
            System.err.println("请求文件名格式不正确");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 949){
            System.err.println("文件解压失败");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 952){
            System.err.println("格式校验失败");
            System.err.println(jsonObject.getString("error"));
        }
        if(code == 1000){
            System.err.println("请求异常");
            System.err.println(jsonObject.getString("error"));
        }
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/TaskUtil.java
New file
@@ -0,0 +1,112 @@
package com.sinata.ministryoftransport.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.aliyuncs.exceptions.ClientException;
import com.sinata.ministryoftransport.server.IMinistryOfTransportService;
import com.sinata.ministryoftransport.util.httpClinet.HttpResult;
import com.sun.org.apache.bcel.internal.generic.FADD;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;
/**
 * 定时任务工具类
 */
@Component
public class TaskUtil {
    @Autowired
    private ALiSendSms aLiSendSms;
    private boolean push = false;
    @Autowired
    private IMinistryOfTransportService ministryOfTransportService;
    private Integer counter = 0;
    /**
     * 每隔一分钟去处理的定时任务
     */
    @Scheduled(fixedRate = 1000 * 60)
    public void taskMinute(){
        try {
            String baseInfoCompany = "{\"CompanyName\":\"昭通市睿邦科技有限公司\",\"Identifier\":\"91530600MA6K70Q50D\",\"Address\":530602,\"BusinessScope\":\"网络预约出租汽车客运\"," +
                    "\"ContactAddress\":\"云南省昭通市昭阳区龙泉路501号\",\"EconomicType\":\"150\",\"RegCapital\":\"一千万元\",\"LegalName\":\"虎尊国\",\"LegalID\":\"53210119760928201X\"," +
                    "\"LegalPhone\":\"13118708883\",\"State\":0,\"Flag\":2,\"UpdateTime\":\"" +System.currentTimeMillis() + "\"}";
            String result = ministryOfTransportService.baseInfoCompany(baseInfoCompany);
            HttpResult httpResult = JSON.parseObject(result, HttpResult.class);
            if(httpResult.getCode() == 200 || httpResult.getCode() == 201){
                counter = 0;
            }
            if(null == httpResult){
                sendSms();
                System.err.println("请求接口出错!");
                return;
            }
        } catch (Exception e) {
            sendSms();
            e.printStackTrace();
        }
    }
    /**
     * 每天的1点执行的任务
     */
//    @Scheduled(cron = "0 0 1 * * *")
//    public void taskDay(){
//        try {
//
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
    /**
     * 每月第一天的1点执行的任务
     */
//    @Scheduled(cron = "0 0 1 1 * *")
//    public void taskMonth(){
//        try {
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//    }
    /**
     * 触发发送短信提醒
     */
    public void sendSms(){
        counter++;
        if(counter == 3){
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            String time = sdf.format(new Date());
            try {
                aLiSendSms.sendSms("15907727138", "SMS_210780079", "{\"phone\":\"15907727138\",\"time\":\"" + time + "\"}");
            } catch (ClientException e) {
                e.printStackTrace();
            }
        }
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/httpClinet/HttpClientUtil.java
New file
@@ -0,0 +1,265 @@
package com.sinata.ministryoftransport.util.httpClinet;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.ssl.SSLContexts;
import org.apache.http.util.EntityUtils;
import org.springframework.stereotype.Component;
import javax.net.ssl.SSLContext;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.security.KeyStore;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
 * http工具类
 */
@Component
public class HttpClientUtil {
    private PoolingHttpClientConnectionManager connectionManager;
    public HttpClientUtil(){
        //1.创建连接池管理器
        connectionManager = new PoolingHttpClientConnectionManager(60000,
                TimeUnit.MILLISECONDS);
        connectionManager.setMaxTotal(1000);
        connectionManager.setDefaultMaxPerRoute(50);
    }
    /**
     * 创建一个httpClient对象
     */
    private CloseableHttpClient getHttpCline(){
        return  HttpClients.custom()
                .setConnectionManager(connectionManager)
                .disableAutomaticRetries()
                .build();
    }
    private RequestConfig getRequestConfig(){
        RequestConfig.Builder builder = RequestConfig.custom();
        builder.setSocketTimeout(60000)//3.1设置客户端等待服务端返回数据的超时时间
                .setConnectTimeout(30000)//3.2设置客户端发起TCP连接请求的超时时间
                .setExpectContinueEnabled(true)
                .setConnectionRequestTimeout(30000);//3.3设置客户端从连接池获取链接的超时时间
        return builder.build();
    }
    /**
     * 创建一个POST请求实例
     * @param url       请求地址
     * @param params    请求参数
     */
    private CloseableHttpResponse setPostHttpRequset(String url, Map<String, Object> params, Map<String, String> header, String contentType) throws Exception{
        HttpPost httpPost = new HttpPost(url);
        httpPost.setConfig(this.getRequestConfig());
        if(null != header){
            for(String key : header.keySet()){
                httpPost.setHeader(key, header.get(key));
            }
        }
        List<NameValuePair> list = new ArrayList<>();
        if(null != params){
            Set<String> keys = params.keySet();
            for(String key : keys){
                list.add(new BasicNameValuePair(key, null == params.get(key) ? null : params.get(key).toString()));
            }
        }
        switch (contentType){
            case "form":
                httpPost.setEntity(new UrlEncodedFormEntity(list, "UTF-8"));
                break;
            case "json":
                ObjectMapper objectMapper = new ObjectMapper();
                String s =objectMapper.writeValueAsString(params);
                httpPost.setEntity(new StringEntity(s, ContentType.create(ContentType.APPLICATION_JSON.getMimeType(), Charset.forName("UTF-8"))));
                break;
        }
        return getHttpCline().execute(httpPost);
    }
    /**
     * 获取get请求实例
     * @param url       请求地址
     * @param params    请求参数
     */
    private CloseableHttpResponse setGetHttpRequset(String url, Map<String, Object> params, Map<String, String> header) throws Exception{
        StringBuffer sb = new StringBuffer();
        String p = "";
        if(null != params){
            Set<String> keys = params.keySet();
            for(String key : keys){
                sb.append(key + "=" + params.get(key) + "&");
            }
            p = "?" + sb.substring(0, sb.length() - 1);
        }
        HttpGet httpGet = new HttpGet(url + p);
        httpGet.setConfig(getRequestConfig());
        if(null != header){
            for(String key : header.keySet()){
                httpGet.setHeader(key, header.get(key));
            }
        }
        return getHttpCline().execute(httpGet);
    }
    /**
     * 发送http请求
     * @param mothed        "GET、POST、PUT、HEAD、DELETE、HEAD、OPTIONS"
     * @param url           请求地址
     * @param params        请求参数
     * @param header        请求头
     * @param contentType   参数请求方式form/json
     * @return
     */
    public HttpResult pushHttpRequset(String mothed, String url, Map<String, Object> params, Map<String, String> header, String contentType) throws Exception{
        String randome = UUID.randomUUID().toString();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:S");
        System.err.println(sdf.format(new Date()) + "----(" + randome + ")请求参数:" + JSON.toJSONString(params));
        CloseableHttpResponse httpResponse = null;
        switch (mothed){
            case "GET":
                httpResponse = this.setGetHttpRequset(url, params, header);
                break;
            case "POST":
                httpResponse = setPostHttpRequset(url, params, header, contentType);
                break;
        }
        int statusCode = httpResponse.getStatusLine().getStatusCode();
        String content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        System.err.println(sdf.format(new Date()) + "----(" + randome + ")返回结果:(" + statusCode + ")" + content);
        HttpResult httpResult = HttpResult.getHttpResult(statusCode, content);
        this.close(httpResponse);
        return httpResult;
    }
    /**
     * 发送XML请求
     * @param url       请求地址
     * @param xml       XML数据
     * @param header    自定义请求头
     * @return
     */
    public HttpResult pushHttpRequsetXml(String url, String xml, Map<String, String> header) throws Exception{
        HttpPost httpPost = new HttpPost(url);
        httpPost.setConfig(getRequestConfig());
        for(String key : header.keySet()){
            httpPost.setHeader(key, header.get(key));
        }
        httpPost.setHeader("Content-Type", "application/xml");
        httpPost.setEntity(new StringEntity(xml, "UTF-8"));
        CloseableHttpResponse httpResponse = getHttpCline().execute(httpPost);
        int statusCode = httpResponse.getStatusLine().getStatusCode();
        String content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        HttpResult httpResult = HttpResult.getHttpResult(statusCode, content);
        this.close(httpResponse);
        return httpResult;
    }
    /**
     * 请求https发送XML请求
     * @param url           接口路径
     * @param xml           内容
     * @param header        请求头
     * @param certPassword      证书密码
     * @param certPath      证书路径
     * @param certType      证书类型
     * @return
     * @throws Exception
     */
    public String pushHttpsRequsetXml(String url, String xml, Map<String, String> header, String certPassword, String certPath, String certType) throws Exception{
        HttpPost httpPost = new HttpPost(url);
        for(String key : header.keySet()){
            httpPost.setHeader(key, header.get(key));
        }
        httpPost.setHeader("Content-Type", "application/xml");
        httpPost.setEntity(new StringEntity(xml, "UTF-8"));
        CloseableHttpClient httpCline = this.initCert(certPassword, certPath, certType);
        CloseableHttpResponse httpResponse = httpCline.execute(httpPost);
        String content = null;
        if(httpResponse.getStatusLine().getStatusCode() == 200){
            content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        }else{
            content = "返回状态码:" + httpResponse.getStatusLine() + "。" + EntityUtils.toString(httpResponse.getEntity());
        }
        this.close(httpResponse);
        httpCline.close();
        return content;
    }
    /**
     * 初始化https对象(带证书)
     * @param key       证书密码
     * @param certPath  证书路径
     * @param certType  证书类型
     * @throws Exception
     */
    private CloseableHttpClient initCert(String key, String certPath, String certType) throws Exception {
        KeyStore keyStore = KeyStore.getInstance(certType);
        InputStream inputStream = new FileInputStream(new File(certPath));
        try {
            keyStore.load(inputStream, key.toCharArray());
        } finally {
            inputStream.close();
        }
        SSLContext sslcontext = SSLContexts.custom().loadKeyMaterial(keyStore, key.toCharArray()).build();
        SSLConnectionSocketFactory sslsf =
                new SSLConnectionSocketFactory(sslcontext, new String[] {"TLSv1"}, null,
                        SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);
        return HttpClients.custom().setSSLSocketFactory(sslsf).build();
    }
    /**
     * 关闭资源
     */
    private void close(CloseableHttpResponse httpResponse){
        try {
            if(null != httpResponse){
                EntityUtils.consume(httpResponse.getEntity());//此处高能,通过源码分析,由EntityUtils是否回收HttpEntity
                httpResponse.close();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            try {
                if(null != httpResponse){
                    httpResponse.close();
                }
            }catch (Exception e){
                e.printStackTrace();
            }
        }
    }
}
MinistryOfTransport/src/main/java/com/sinata/ministryoftransport/util/httpClinet/HttpResult.java
New file
@@ -0,0 +1,45 @@
package com.sinata.ministryoftransport.util.httpClinet;
/**
 * http请求返回封装
 */
public class HttpResult {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * 返回结果
     */
    private String data;
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getData() {
        return data;
    }
    public void setData(String data) {
        this.data = data;
    }
    /**
     * 返回封装结果
     * @param code
     * @param data
     * @return
     */
    public static HttpResult getHttpResult(Integer code, String data){
        HttpResult httpResult = new HttpResult();
        httpResult.setCode(code);
        httpResult.setData(data);
        return httpResult;
    }
}
MinistryOfTransport/src/main/resources/application.properties
New file
@@ -0,0 +1 @@
server.port=8868
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/ALiApiUtil.java
@@ -33,7 +33,12 @@
        param.put("key", "1");
        param.put("mobile", name);
        param.put("idcard", code);
        String get = httpClientUtil.pushHttpRequset("GET", url, param, header, "form");
        String get = null;
        try {
            get = httpClientUtil.pushHttpRequset("GET", url, param, header, "form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        JSONObject jsonObject = JSON.parseObject(get);
        if(jsonObject.getIntValue("error_code") == 0){
            JSONObject value = jsonObject.getJSONObject("result");
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpClientUtil.java
@@ -1,5 +1,6 @@
package com.stylefeng.guns.modular.system.util;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
@@ -8,6 +9,7 @@
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
@@ -24,6 +26,7 @@
import java.io.InputStream;
import java.nio.charset.Charset;
import java.security.KeyStore;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.TimeUnit;
@@ -43,20 +46,29 @@
    /**
     * 创建一个httpClient对象
     */
    private void getHttpCline(){
        //1.创建连接池管理器
        PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(60000,
                TimeUnit.MILLISECONDS);
        connectionManager.setMaxTotal(1000);
        connectionManager.setDefaultMaxPerRoute(50);
        //2.创建httpclient对象
        this.httpClient = HttpClients.custom()
//    private void getHttpCline(){
//        //1.创建连接池管理器
//        PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(60000,
//                TimeUnit.MILLISECONDS);
//        connectionManager.setMaxTotal(1000);
//        connectionManager.setDefaultMaxPerRoute(50);
//
//        //2.创建httpclient对象
//        this.httpClient = HttpClients.custom()
//                .setConnectionManager(connectionManager)
//                .disableAutomaticRetries()
//                .build();
//    }
    private PoolingHttpClientConnectionManager connectionManager;
    /**
     * 创建一个httpClient对象
     */
    private CloseableHttpClient getHttpCline(){
        return  HttpClients.custom()
                .setConnectionManager(connectionManager)
                .disableAutomaticRetries()
                .build();
    }
    private RequestConfig getRequestConfig(){
        return RequestConfig.custom()
                .setConnectTimeout(60000)
@@ -71,7 +83,7 @@
     * @param url       请求地址
     * @param params    请求参数
     */
    private void setPostHttpRequset(String url, Map<String, Object> params, Map<String, String> header, String contentType){
    private CloseableHttpResponse setPostHttpRequset(String url, Map<String, Object> params, Map<String, String> header, String contentType) throws Exception{
        HttpPost httpPost = new HttpPost(url);
        httpPost.setConfig(this.getRequestConfig());
        if(null != header){
@@ -83,30 +95,20 @@
        if(null != params){
            Set<String> keys = params.keySet();
            for(String key : keys){
                list.add(new BasicNameValuePair(key, params.get(key).toString()));
                list.add(new BasicNameValuePair(key, null == params.get(key) ? null : params.get(key).toString()));
            }
        }
        try {
            switch (contentType){
                case "form":
                    httpPost.setEntity(new UrlEncodedFormEntity(list, "UTF-8"));
                    break;
                case "json":
                    ObjectMapper objectMapper = new ObjectMapper();
                    String s =objectMapper.writeValueAsString(params);
                    System.err.println(s);
                    httpPost.setEntity(new StringEntity(s, Charset.forName("UTF-8")));
                    break;
            }
            this.getHttpCline();
            if(null == this.httpClient){
                this.getHttpCline();
            }
            httpResponse = this.httpClient.execute(httpPost);
        } catch (IOException e) {
            e.printStackTrace();
            this.close();
        switch (contentType){
            case "form":
                httpPost.setEntity(new UrlEncodedFormEntity(list, "UTF-8"));
                break;
            case "json":
                ObjectMapper objectMapper = new ObjectMapper();
                String s =objectMapper.writeValueAsString(params);
                httpPost.setEntity(new StringEntity(s, ContentType.create(ContentType.APPLICATION_JSON.getMimeType(), Charset.forName("UTF-8"))));
                break;
        }
        return getHttpCline().execute(httpPost);
    }
@@ -115,7 +117,7 @@
     * @param url       请求地址
     * @param params    请求参数
     */
    private void setGetHttpRequset(String url, Map<String, Object> params, Map<String, String> header){
    private CloseableHttpResponse setGetHttpRequset(String url, Map<String, Object> params, Map<String, String> header) throws Exception{
        StringBuffer sb = new StringBuffer();
        String p = "";
        if(null != params){
@@ -126,23 +128,86 @@
            p = "?" + sb.substring(0, sb.length() - 1);
        }
        HttpGet httpGet = new HttpGet(url + p);
        httpGet.setConfig(getRequestConfig());
        if(null != header){
            for(String key : header.keySet()){
                httpGet.setHeader(key, header.get(key));
            }
        }
        this.getHttpCline();
        if(null == this.httpClient){
            this.getHttpCline();
        }
        try {
            httpResponse = this.httpClient.execute(httpGet);
        } catch (IOException e) {
            e.printStackTrace();
            this.close();
        }
        return getHttpCline().execute(httpGet);
    }
    /**
     * 获取get请求实例
     * @param url       请求地址
     * @param params    请求参数
     */
//    private CloseableHttpResponse setGetHttpRequset(String url, Map<String, Object> params, Map<String, String> header) throws Exception{
//        StringBuffer sb = new StringBuffer();
//        String p = "";
//        if(null != params){
//            Set<String> keys = params.keySet();
//            for(String key : keys){
//                sb.append(key + "=" + params.get(key) + "&");
//            }
//            p = "?" + sb.substring(0, sb.length() - 1);
//        }
//        HttpGet httpGet = new HttpGet(url + p);
//        httpGet.setConfig(getRequestConfig());
//        if(null != header){
//            for(String key : header.keySet()){
//                httpGet.setHeader(key, header.get(key));
//            }
//        }
//        return getHttpCline().execute(httpGet);
//    }
//    /**
//     * 发送http请求
//     * @param mothed        "GET、POST、PUT、HEAD、DELETE、HEAD、OPTIONS"
//     * @param url           请求地址
//     * @param params        请求参数
//     * @param header        请求头
//     * @param contentType   参数请求方式form/json
//     * @return
//     */
//    public String pushHttpRequset(String mothed, String url, Map<String, Object> params, Map<String, String> header, String contentType){
//        String content = null;
//        switch (mothed){
//            case "GET":
//                this.setGetHttpRequset(url, params, header);
//                break;
//            case "POST":
//                this.setPostHttpRequset(url, params, header, contentType);
//                break;
//        }
//        if(httpResponse.getStatusLine().getStatusCode() == 200){
//            try {
//                content = EntityUtils.toString(httpResponse.getEntity());
//                this.close();
//                return content;
//            } catch (IOException e) {
//                e.printStackTrace();
//                this.close();
//            }
//        }
//        if(httpResponse.getStatusLine().getStatusCode() == 201){
//            content = "{\"status\":201}";
//            this.close();
//            return content;
//        }else{
//            try {
//                System.err.println("返回状态码:" + httpResponse.getStatusLine() + "。");
//                content = EntityUtils.toString(httpResponse.getEntity());
//                this.close();
//                return content;
//            } catch (IOException e) {
//                e.printStackTrace();
//                this.close();
//            }
//        }
//        this.close();
//        return content;
//    }
    /**
     * 发送http请求
@@ -153,46 +218,26 @@
     * @param contentType   参数请求方式form/json
     * @return
     */
    public String pushHttpRequset(String mothed, String url, Map<String, Object> params, Map<String, String> header, String contentType){
        String content = null;
    public HttpResult pushHttpRequset(String mothed, String url, Map<String, Object> params, Map<String, String> header, String contentType) throws Exception{
        String randome = UUID.randomUUID().toString();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:S");
        System.err.println(sdf.format(new Date()) + "----(" + randome + ")请求参数:" + JSON.toJSONString(params));
        CloseableHttpResponse httpResponse = null;
        switch (mothed){
            case "GET":
                this.setGetHttpRequset(url, params, header);
                httpResponse = this.setGetHttpRequset(url, params, header);
                break;
            case "POST":
                this.setPostHttpRequset(url, params, header, contentType);
                httpResponse = setPostHttpRequset(url, params, header, contentType);
                break;
        }
        if(httpResponse.getStatusLine().getStatusCode() == 200){
            try {
                content = EntityUtils.toString(httpResponse.getEntity());
                this.close();
                return content;
            } catch (IOException e) {
                e.printStackTrace();
                this.close();
            }
        }
        if(httpResponse.getStatusLine().getStatusCode() == 201){
            content = "{\"status\":201}";
            this.close();
            return content;
        }else{
            try {
                System.err.println("返回状态码:" + httpResponse.getStatusLine() + "。");
                content = EntityUtils.toString(httpResponse.getEntity());
                this.close();
                return content;
            } catch (IOException e) {
                e.printStackTrace();
                this.close();
            }
        }
        this.close();
        return content;
        int statusCode = httpResponse.getStatusLine().getStatusCode();
        String content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        System.err.println(sdf.format(new Date()) + "----(" + randome + ")返回结果:" + content);
        HttpResult httpResult = HttpResult.getHttpResult(statusCode, content);
        this.close(httpResponse);
        return httpResult;
    }
    /**
     * 发送XML请求
     * @param url       请求地址
@@ -200,46 +245,20 @@
     * @param header    自定义请求头
     * @return
     */
    public String pushHttpRequsetXml(String url, String xml, Map<String, String> header){
    public HttpResult pushHttpRequsetXml(String url, String xml, Map<String, String> header) throws Exception{
        HttpPost httpPost = new HttpPost(url);
        httpPost.setConfig(getRequestConfig());
        for(String key : header.keySet()){
            httpPost.setHeader(key, header.get(key));
        }
        httpPost.setHeader("Content-Type", "application/xml");
        try {
            httpPost.setEntity(new StringEntity(xml, "UTF-8"));
            this.getHttpCline();
            if(null == this.httpClient){
                this.getHttpCline();
            }
            httpResponse = this.httpClient.execute(httpPost);
            String content = null;
            if(httpResponse.getStatusLine().getStatusCode() == 200){
                try {
                    content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
                    this.close();
                    return content;
                } catch (IOException e) {
                    e.printStackTrace();
                    this.close();
                }
            }else{
                try {
                    content = "返回状态码:" + httpResponse.getStatusLine() + "。" + EntityUtils.toString(httpResponse.getEntity());
                    this.close();
                    return content;
                } catch (IOException e) {
                    e.printStackTrace();
                    this.close();
                }
            }
            this.close();
            return content;
        } catch (IOException e) {
            e.printStackTrace();
            this.close();
        }
        return null;
        httpPost.setEntity(new StringEntity(xml, "UTF-8"));
        CloseableHttpResponse httpResponse = getHttpCline().execute(httpPost);
        int statusCode = httpResponse.getStatusLine().getStatusCode();
        String content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        HttpResult httpResult = HttpResult.getHttpResult(statusCode, content);
        this.close(httpResponse);
        return httpResult;
    }
@@ -261,34 +280,18 @@
            httpPost.setHeader(key, header.get(key));
        }
        httpPost.setHeader("Content-Type", "application/xml");
        try {
            httpPost.setEntity(new StringEntity(xml, "UTF-8"));
            this.getHttpCline();
            this.initCert(certPassword, certPath, certType);
            httpResponse = this.httpClient.execute(httpPost);
            String content = null;
            if(httpResponse.getStatusLine().getStatusCode() == 200){
                try {
                    content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
                } catch (IOException e) {
                    e.printStackTrace();
                    this.close();
                }
            }else{
                try {
                    content = "返回状态码:" + httpResponse.getStatusLine() + "。" + EntityUtils.toString(httpResponse.getEntity());
                } catch (IOException e) {
                    e.printStackTrace();
                    this.close();
                }
            }
            this.close();
            return content;
        } catch (IOException e) {
            e.printStackTrace();
            this.close();
        httpPost.setEntity(new StringEntity(xml, "UTF-8"));
        CloseableHttpClient httpCline = this.initCert(certPassword, certPath, certType);
        CloseableHttpResponse httpResponse = httpCline.execute(httpPost);
        String content = null;
        if(httpResponse.getStatusLine().getStatusCode() == 200){
            content = EntityUtils.toString(httpResponse.getEntity(), "UTF-8");
        }else{
            content = "返回状态码:" + httpResponse.getStatusLine() + "。" + EntityUtils.toString(httpResponse.getEntity());
        }
        return null;
        this.close(httpResponse);
        httpCline.close();
        return content;
    }
@@ -299,11 +302,9 @@
     * @param certType  证书类型
     * @throws Exception
     */
    private void initCert(String key, String certPath, String certType) throws Exception {
    private CloseableHttpClient initCert(String key, String certPath, String certType) throws Exception {
        KeyStore keyStore = KeyStore.getInstance(certType);
//        ClassPathResource cp = new ClassPathResource(certPath);
        InputStream inputStream = new FileInputStream(new File(certPath));
//        InputStream instream = cp.getInputStream();
        try {
            keyStore.load(inputStream, key.toCharArray());
        } finally {
@@ -313,28 +314,23 @@
        SSLConnectionSocketFactory sslsf =
                new SSLConnectionSocketFactory(sslcontext, new String[] {"TLSv1"}, null,
                        SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);
        this.httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).build();
        return HttpClients.custom().setSSLSocketFactory(sslsf).build();
    }
    /**
     * 关闭资源
     */
    private void close(){
    private void close(CloseableHttpResponse httpResponse){
        try {
            if(null != httpClient){
                httpClient.close();
            }
            if(null != httpResponse){
                EntityUtils.consume(httpResponse.getEntity());//此处高能,通过源码分析,由EntityUtils是否回收HttpEntity
                httpResponse.close();
            }
        } catch (IOException e) {
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            try {
                if(null != httpClient){
                    httpClient.close();
                }
                if(null != httpResponse){
                    httpResponse.close();
                }
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/HttpResult.java
New file
@@ -0,0 +1,45 @@
package com.stylefeng.guns.modular.system.util;
/**
 * http请求返回封装
 */
public class HttpResult {
    /**
     * 返回状态码
     */
    private Integer code;
    /**
     * 返回结果
     */
    private String data;
    /**
     * 返回封装结果
     * @param code
     * @param data
     * @return
     */
    public static HttpResult getHttpResult(Integer code, String data){
        HttpResult httpResult = new HttpResult();
        httpResult.setCode(code);
        httpResult.setData(data);
        return httpResult;
    }
    public Integer getCode() {
        return code;
    }
    public void setCode(Integer code) {
        this.code = code;
    }
    public String getData() {
        return data;
    }
    public void setData(String data) {
        this.data = data;
    }
}
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/MinistryOfTransport.java
@@ -61,7 +61,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -84,7 +89,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -112,7 +122,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -145,7 +160,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -175,7 +195,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -221,7 +246,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -276,7 +306,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -305,7 +340,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -330,7 +370,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -390,7 +435,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -419,7 +469,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -448,7 +503,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -476,7 +536,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -503,7 +568,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -535,7 +605,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -563,7 +638,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -590,7 +670,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -615,7 +700,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -640,7 +730,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -669,7 +764,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -695,7 +795,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -752,7 +857,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -783,7 +893,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -816,7 +931,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -841,7 +961,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -864,7 +989,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -886,7 +1016,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -909,7 +1044,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -938,7 +1078,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -972,7 +1117,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -1005,7 +1155,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
@@ -1057,7 +1212,12 @@
        data.put("Source", Source);
        data.put("IPCType", IPCType);
        data.put("baseInfoCompany", jsonObject);
        String s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json");
        String s = null;
        try {
            s = httpClientUtil.pushHttpRequset("POST", path, data, null, "json").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println(s);
    }
}
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PayMoneyUtil.java
@@ -337,7 +337,7 @@
        xmlString.append("</xml>");
        Map<String, String> map1 = null;
        String body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>());
        String body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>()).getData();
        //将结果xml解析成map
        body1 = body1.replaceAll("<!\\[CDATA\\[","");
        body1 = body1.replaceAll("]]>", "");
@@ -495,7 +495,12 @@
        xmlString.append("</xml>");
        Map<String, String> map1 = null;
        String body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>());
        String body1 = null;
        try {
            body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>()).getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        //将结果xml解析成map
        body1 = body1.replaceAll("<!\\[CDATA\\[","");
        body1 = body1.replaceAll("]]>", "");
@@ -803,7 +808,7 @@
        xmlString.append("</xml>");
        Map<String, String> map1 = null;
        String body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>());
        String body1 = httpClientUtil.pushHttpRequsetXml(url, xmlString.toString(), new HashMap<>()).getData();
        //将结果xml解析成map
        body1 = body1.replaceAll("<!\\[CDATA\\[","");
        body1 = body1.replaceAll("]]>", "");
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/PushMinistryOfTransportUtil.java
@@ -66,7 +66,7 @@
    @Autowired
    private IOrderEvaluateService orderEvaluateService;
    private String path = "http://120.77.11.218:8868/";
    private String path = "http://127.0.0.1:8868/";
    /**
@@ -85,8 +85,19 @@
        jsonObject.put("UpdateTime", new Date());
        Map<String, Object> map = new HashMap<>();
        map.put("baseInfoPassenger", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/baseInfoPassenger", map,null,"form");
        System.out.println("乘客基本信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/baseInfoPassenger", map, header,"form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("---------------------------乘客基本信息--------------------------:" + result);
    }
@@ -120,8 +131,19 @@
        jsonObject.put("CancelReason", query.getReason());//撤销或违约原因
        Map<String, Object> map = new HashMap<>();
        map.put("orderCancel", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderCancel", map,null,"form");
        System.out.println("订单撤销接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/orderCancel", map, header,"form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("----------------------------订单撤销接口------------------:" + result);
    }
@@ -138,7 +160,7 @@
        TransactionDetails transactionDetails = transactionDetailsService.selectById(new EntityWrapper<TransactionDetails>().eq("orderType", 1).eq("orderId", orderId));
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单号
        jsonObject.put("OnArea", 450204);//上车位置行政区划代码
        jsonObject.put("OnArea", 530602);//上车位置行政区划代码
        jsonObject.put("DriverName", driver.getName());//机动车驾驶员
        jsonObject.put("LicenseId", driver.getDriveCard());//机动车驾驶证号
        jsonObject.put("FareType", query.get("id").toString());//运价类型编码(由网约车公司定义,与运价信息接口保持一街)
@@ -199,8 +221,19 @@
        jsonObject.put("InvoiceStatus", "0");//发票状态(0:未开票,1:已开票,2:未知)
        Map<String, Object> map = new HashMap<>();
        map.put("operatePay", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operatePay", map,null,"form");
        System.out.println("经营支付接口:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/operatePay", map, header,"form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("------------------------经营支付接口----------------------:" + result);
    }
@@ -219,8 +252,21 @@
        jsonObject.put("Detail", orderEvaluate.getContent());//评价内容
        Map<String, Object> map = new HashMap<>();
        map.put("ratedPassenger", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/ratedPassenger", map,null,"form");
        System.out.println("乘客评价信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/ratedPassenger", map, header,"form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("-----------------------------乘客评价信息----------------------:" + result);
    }
@@ -243,8 +289,19 @@
        jsonObject.put("TestDepartment", "广西云森科技有限公司");//服务质量信誉考核机构
        Map<String, Object> map = new HashMap<>();
        map.put("ratedDriver", jsonObject.toJSONString());
        String result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/ratedDriver", map,null,"form");
        System.out.println("驾驶员信誉信息:" + result);
        Map<String, String> header = new HashMap<>();
        header.put("Connection", "keep-alive");
        header.put("Content-Type", "application/x-www-form-urlencoded");
        header.put("Accept", "*/*");
        header.put("Accept-Encoding", "gzip");
        header.put("Accept-Charset", "utf-8");
        String result = null;
        try {
            result = httpClientUtil.pushHttpRequset("POST", path + "ministryOfTransport/ratedDriver", map, header,"form").getData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.err.println("---------------------------驾驶员信誉信息-----------------------:" + result);
    }