| | |
| | | * 上传企业基础信息 |
| | | */ |
| | | public String baseInfoCompany(BaseInfoCompany baseInfoCompany) throws Exception{ |
| | | System.err.println("公司信息"+baseInfoCompany); |
| | | String IPCType = "baseInfoCompany"; |
| | | String path = url + "/baseinfo/company"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车平台公司营运规模信息接口 |
| | | */ |
| | | public String baseInfoCompanyStat(BaseInfoCompanyStat baseInfoCompanyStat) throws Exception{ |
| | | System.err.println("网约车平台公司营运规模信息接口"+baseInfoCompanyStat); |
| | | |
| | | String IPCType = "baseInfoCompanyStat"; |
| | | String path = url + "/baseinfo/companystat"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车平台公司支付信息 |
| | | */ |
| | | public String baseInfoCompanyPay(BaseInfoCompanyPay baseInfoCompanyPay) throws Exception{ |
| | | System.err.println("网约车平台公司支付信息"+baseInfoCompanyPay); |
| | | String IPCType = "baseInfoCompanyPay"; |
| | | String path = url + "/baseinfo/companypay"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车平台公司服务机构 |
| | | */ |
| | | public String baseInfoCompanyService(BaseInfoCompanyService baseInfoCompanyService) throws Exception{ |
| | | System.err.println("网约车平台公司服务机构"+baseInfoCompanyService); |
| | | String IPCType = "baseInfoCompanyService"; |
| | | String path = url + "/baseinfo/companyservice"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车平台公司经营许可 |
| | | */ |
| | | public String baseInfoCompanyPermit(BaseInfoCompanyPermit baseInfoCompanyPermit) throws Exception{ |
| | | System.err.println("网约车平台公司经营许可"+baseInfoCompanyPermit); |
| | | |
| | | String IPCType = "baseInfoCompanyPermit"; |
| | | String path = url + "/baseinfo/companypermit"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车平台公司运价信息 |
| | | */ |
| | | public String baseInfoCompanyFare(BaseInfoCompanyFare baseInfoCompanyFare) throws Exception{ |
| | | System.err.println("网约车平台公司运价信息"+baseInfoCompanyFare); |
| | | |
| | | String IPCType = "baseInfoCompanyFare"; |
| | | String path = url + "/baseinfo/companyfare"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 车辆基本信息 |
| | | */ |
| | | public String baseInfoVehicle(BaseInfoVehicle baseInfoVehicle) throws Exception{ |
| | | System.err.println("车辆基本信息"+baseInfoVehicle); |
| | | |
| | | String IPCType = "baseInfoVehicle"; |
| | | String path = url + "/baseinfo/vehicle"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 车辆保险信息 |
| | | */ |
| | | public String baseInfoVehicleInsurance(BaseInfoVehicleInsurance baseInfoVehicleInsurance) throws Exception{ |
| | | System.err.println("车辆保险信息"+baseInfoVehicleInsurance); |
| | | |
| | | String IPCType = "baseInfoVehicleInsurance"; |
| | | String path = url + "/baseinfo/vehicleinsurance"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车车辆里程信息 |
| | | */ |
| | | public String baseInfoVehicleTotalMile(BaseInfoVehicleTotalMile baseInfoVehicleTotalMile) throws Exception{ |
| | | System.err.println("网约车车辆里程信息"+baseInfoVehicleTotalMile); |
| | | |
| | | String IPCType = "baseInfoVehicleTotalMile"; |
| | | String path = url + "/baseinfo/vehicletotalmile"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员基本信息 |
| | | */ |
| | | public String baseInfoDriver(BaseInfoDriver baseInfoDriver) throws Exception{ |
| | | System.err.println("驾驶员基本信息"+baseInfoDriver); |
| | | |
| | | String IPCType = "baseInfoDriver"; |
| | | String path = url + "/baseinfo/driver"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 网约车驾驶员培训信息 |
| | | */ |
| | | public String baseInfoDriverEducate(BaseInfoDriverEducate baseInfoDriverEducate) throws Exception{ |
| | | System.err.println("网约车驾驶员培训信息"+baseInfoDriverEducate); |
| | | |
| | | String IPCType = "baseInfoDriverEducate"; |
| | | String path = url + "/baseinfo/drivereducate"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员移动终端信息 |
| | | */ |
| | | public String baseInfoDriverApp(BaseInfoDriverApp baseInfoDriverApp) throws Exception{ |
| | | System.err.println("驾驶员移动终端信息"+baseInfoDriverApp); |
| | | |
| | | String IPCType = "baseInfoDriverApp"; |
| | | String path = url + "/baseinfo/driverapp"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员统计信息 |
| | | */ |
| | | public String baseInfoDriverStat(BaseInfoDriverStat baseInfoDriverStat) throws Exception{ |
| | | System.err.println("驾驶员统计信息"+baseInfoDriverStat); |
| | | |
| | | String IPCType = "baseInfoDriverStat"; |
| | | String path = url + "/baseinfo/driverstat"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 乘客基本信息 |
| | | */ |
| | | public String baseInfoPassenger(BaseInfoPassenger baseInfoPassenger) throws Exception{ |
| | | System.err.println("乘客基本信息"+baseInfoPassenger); |
| | | |
| | | String IPCType = "baseInfoPassenger"; |
| | | String path = url + "/baseinfo/passenger"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 订单发起接口 |
| | | */ |
| | | public String orderCreate(OrderCreate orderCreate) throws Exception{ |
| | | System.err.println("订单发起接口"+orderCreate); |
| | | |
| | | String IPCType = "orderCreate"; |
| | | String path = url + "/order/create"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 订单成功接口 |
| | | */ |
| | | public String orderMatch(OrderMatch orderMatch) throws Exception{ |
| | | System.err.println("订单成功接口"+orderMatch); |
| | | |
| | | String IPCType = "orderMatch"; |
| | | String path = url + "/order/match"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 订单撤销接口 |
| | | */ |
| | | public String orderCancel(OrderCancel orderCancel) throws Exception{ |
| | | System.err.println("订单撤销接口"+orderCancel); |
| | | |
| | | String IPCType = "orderCancel"; |
| | | String path = url + "/order/cancel"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 车辆经营上线接口 |
| | | */ |
| | | public String operateLogin(OperateLogin operateLogin) throws Exception{ |
| | | System.err.println("车辆经营上线接口"+operateLogin); |
| | | |
| | | String IPCType = "operateLogin"; |
| | | String path = url + "/operate/login"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 车辆经营下线接口 |
| | | */ |
| | | public String operateLogout(OperateLogout operateLogout) throws Exception{ |
| | | System.err.println("车辆经营下线接口"+operateLogout); |
| | | |
| | | String IPCType = "operateLogout"; |
| | | String path = url + "/operate/logout"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 经营出发接口 |
| | | */ |
| | | public String operateDepart(OperateDepart operateDepart) throws Exception{ |
| | | System.err.println("经营出发接口"+operateDepart); |
| | | |
| | | String IPCType = "operateDepart"; |
| | | String path = url + "/operate/depart"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 经营到达接口 |
| | | */ |
| | | public String operateArrive(OperateArrive operateArrive) throws Exception{ |
| | | System.err.println("经营到达接口"+operateArrive); |
| | | |
| | | String IPCType = "operateArrive"; |
| | | String path = url + "/operate/arrive"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 经营支付接口 |
| | | */ |
| | | public String operatePay(OperatePay operatePay) throws Exception{ |
| | | System.err.println("经营支付接口"+operatePay); |
| | | |
| | | String IPCType = "operatePay"; |
| | | String path = url + "/operate/pay"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员定位信息 |
| | | */ |
| | | public String positionDriver(PositionDriver positionDriver) throws Exception{ |
| | | System.err.println("驾驶员定位信息"+positionDriver); |
| | | |
| | | String IPCType = "positionDriver"; |
| | | String path = url + "/position/driver"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | header.put("accept-encoding", "gzip"); |
| | | header.put("accept-charset", "utf-8"); |
| | | HttpResult httpResult = httpClientUtil.pushHttpRequset("POST", path, data, header, "json"); |
| | | |
| | | System.err.println("响应结果"+httpResult.getData()); |
| | | |
| | | if(httpResult.getCode() == 200){ |
| | | analysisResult(httpResult.getData()); |
| | |
| | | * 车辆定位信息 |
| | | */ |
| | | public String positionVehicle(PositionVehicle positionVehicle) throws Exception{ |
| | | System.err.println("车辆定位信息"+positionVehicle); |
| | | |
| | | String IPCType = "positionVehicle"; |
| | | String path = url + "/position/vehicle"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 乘客评价信息 |
| | | */ |
| | | public String ratedPassenger(RatedPassenger ratedPassenger) throws Exception{ |
| | | System.err.println("乘客评价信息"+ratedPassenger); |
| | | |
| | | String IPCType = "ratedPassenger"; |
| | | String path = url + "/rated/passenger"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 乘客投诉信息 |
| | | */ |
| | | public String ratedPassengerComplaint(RatedPassengerComplaint ratedPassengerComplaint) throws Exception{ |
| | | System.err.println("乘客投诉信息"+ratedPassengerComplaint); |
| | | |
| | | String IPCType = "ratedPassengerComplaint"; |
| | | String path = url + "/rated/passengercomplaint"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员处罚信息 |
| | | */ |
| | | public String ratedDriverPunish(RatedDriverPunish ratedDriverPunish) throws Exception{ |
| | | System.err.println("驾驶员处罚信息"+ratedDriverPunish); |
| | | |
| | | String IPCType = "ratedDriverPunish"; |
| | | String path = url + "/rated/driverpunish"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 驾驶员信誉信息 |
| | | */ |
| | | public String ratedDriver(RatedDriver ratedDriver) throws Exception{ |
| | | System.err.println("驾驶员信誉信息"+ratedDriver); |
| | | |
| | | String IPCType = "ratedDriver"; |
| | | String path = url + "/rated/driver"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 私人小客车合乘信息服务平台基本信息 |
| | | */ |
| | | public String shareCompany(ShareCompany shareCompany) throws Exception{ |
| | | System.err.println("私人小客车合乘信息服务平台基本信息"+shareCompany); |
| | | |
| | | String IPCType = "shareCompany"; |
| | | String path = url + "/share/company"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 私人小客车合乘驾驶员行程发布接口 |
| | | */ |
| | | public String shareRoute(ShareRoute shareRoute) throws Exception{ |
| | | System.err.println("私人小客车合乘驾驶员行程发布接口"+shareRoute); |
| | | |
| | | String IPCType = "shareRoute"; |
| | | String path = url + "/share/route"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 私人小客车合乘订单接口 |
| | | */ |
| | | public String shareOrder(ShareOrder shareOrder) throws Exception{ |
| | | System.err.println("私人小客车合乘订单接口"+shareOrder); |
| | | |
| | | String IPCType = "shareOrder"; |
| | | String path = url + "/share/order"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | * 私人小客车合乘订单支付接口 |
| | | */ |
| | | public String sharePay(SharePay sharePay) throws Exception{ |
| | | System.err.println("私人小客车合乘订单支付接口"+sharePay); |
| | | |
| | | String IPCType = "sharePay"; |
| | | String path = url + "/share/pay"; |
| | | Map<String, Object> data = new HashMap<>(); |
| | |
| | | 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()); |
| | | } |