| | |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPassengerEvaluateInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPassengerBaseInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformAggregationInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformLicenseInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformPauseOperationRegisterInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformOperationRegisterInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformInvestorInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformPayInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformPriceInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationPlatformServiceInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationVehicleBaseInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationVehicleInsuranceInfoDTO; |
| | | import com.xiaopeng.vehicleConvoy.model.dto.RegulationVehicleMileageInfoDTO; |
| | |
| | | * |
| | | * @return 监管平台原始响应 |
| | | */ |
| | | public String pushPlatformPayInfo() { |
| | | JSONObject item = new JSONObject(); |
| | | item.put("symbol", DEFAULT_SYMBOL); |
| | | item.put("companyId", companyId); |
| | | item.put("payName", ""); //TODO 后续补充完整 |
| | | item.put("payId", ""); //TODO 后续补充完整 |
| | | item.put("payType", ""); //TODO 后续补充完整 |
| | | item.put("payScope", ""); //TODO 后续补充完整 |
| | | item.put("prepareBank", ""); //TODO 后续补充完整 |
| | | item.put("countDate", ""); //TODO 后续补充完整 |
| | | item.put("state", "0"); |
| | | item.put("flag", "1"); |
| | | item.put("updateTime", LocalDateTime.now().format(DATA_TIME_FORMATTER)); |
| | | item.put("protocolVersion", DEFAULT_PROTOCOL_VERSION); |
| | | public String pushPlatformPayInfo(RegulationPlatformPayInfoDTO dto) { |
| | | JSONObject item = buildPlatformPayInfo(dto); |
| | | return pushBasicReqInfo(item,"PTZF"); |
| | | } |
| | | |
| | |
| | | * 网约车平台公司服务机构(PTFWJG) |
| | | * @return 监管平台原始响应 |
| | | */ |
| | | public String pushPlatformServiceInfo() { |
| | | JSONObject item = new JSONObject(); |
| | | item.put("symbol", DEFAULT_SYMBOL); |
| | | item.put("companyId", companyId); |
| | | item.put("address", "");//TODO 后续补充完整 |
| | | item.put("serviceName", "");//TODO 后续补充完整 |
| | | item.put("serviceNo", "");//TODO 后续补充完整 |
| | | item.put("detailAddress", "");//TODO 后续补充完整 |
| | | item.put("responsibleName", "");//TODO 后续补充完整 |
| | | item.put("responsiblePhone", "");//TODO 后续补充完整 |
| | | item.put("managerName", "");//TODO 后续补充完整 |
| | | item.put("managerPhone", "");//TODO 后续补充完整 |
| | | item.put("contactPhone", "");//TODO 后续补充完整 |
| | | item.put("mailAddress", "");//TODO 后续补充完整 |
| | | item.put("createDate", "");//TODO 后续补充完整 |
| | | item.put("state", "0"); |
| | | item.put("flag", "1"); |
| | | item.put("updateTime", LocalDateTime.now().format(DATA_TIME_FORMATTER)); |
| | | item.put("protocolVersion", DEFAULT_PROTOCOL_VERSION); |
| | | public String pushPlatformServiceInfo(RegulationPlatformServiceInfoDTO dto) { |
| | | JSONObject item = buildPlatformServiceInfo(dto); |
| | | return pushBasicReqInfo(item,"PTFWJG"); |
| | | } |
| | | |
| | |
| | | * 网约车平台公司经营许可(CPTJYXK) |
| | | * @return 监管平台原始响应 |
| | | */ |
| | | public String pushPlatformLicenseInfo() { |
| | | JSONObject item = new JSONObject(); |
| | | item.put("symbol", DEFAULT_SYMBOL); |
| | | item.put("companyId", companyId); |
| | | item.put("address", "");//TODO 后续补充完整 |
| | | item.put("certificate", "");//TODO 后续补充完整 |
| | | item.put("operationArea", "");//TODO 后续补充完整 |
| | | item.put("ownerName", "");//TODO 后续补充完整 |
| | | item.put("organization", "");//TODO 后续补充完整 |
| | | item.put("startDate", "");//TODO 后续补充完整 |
| | | item.put("stopDate", "");//TODO 后续补充完整 |
| | | item.put("certifyDate", "");//TODO 后续补充完整 |
| | | item.put("state", "1"); |
| | | item.put("flag", "1"); |
| | | item.put("updateTime", LocalDateTime.now().format(DATA_TIME_FORMATTER)); |
| | | item.put("protocolVersion", DEFAULT_PROTOCOL_VERSION); |
| | | public String pushPlatformLicenseInfo(RegulationPlatformLicenseInfoDTO dto) { |
| | | JSONObject item = buildPlatformLicenseInfo(dto); |
| | | return pushBasicReqInfo(item,"CPTJYXK"); |
| | | } |
| | | |
| | |
| | | * 网约车平台公司计程计价方式(PTYJ) |
| | | * @return 监管平台原始响应 |
| | | */ |
| | | public String pushPlatformPriceInfo() { |
| | | JSONObject item = new JSONObject(); |
| | | item.put("symbol", DEFAULT_SYMBOL); |
| | | item.put("companyId", companyId); |
| | | item.put("address", "");//TODO 后续补充完整 |
| | | item.put("fareType", "");//TODO 后续补充完整 |
| | | item.put("fareTypeNote", "");//TODO 后续补充完整 |
| | | item.put("fareValidOn", "");//TODO 后续补充完整 |
| | | item.put("fareValidOff", "");//TODO 后续补充完整 |
| | | item.put("startFare", "0");//TODO 后续补充完整 |
| | | item.put("startMile", "0");//TODO 后续补充完整 |
| | | item.put("upPrice", "0");//TODO 后续补充完整 |
| | | item.put("upPriceStartMile", "");//TODO 后续补充完整 |
| | | item.put("morningPeakTimeOn", "");//TODO 后续补充完整 |
| | | item.put("morningPeakTimeOff", "");//TODO 后续补充完整 |
| | | item.put("eveningPeakTimeOn", "");//TODO 后续补充完整 |
| | | item.put("eveningPeakTimeOff", "");//TODO 后续补充完整 |
| | | item.put("otherPeakTimeOn", "");//TODO 后续补充完整 |
| | | item.put("otherPeakTimeOff", "");//TODO 后续补充完整 |
| | | item.put("peakUnitPrice", "");//TODO 后续补充完整 |
| | | item.put("peakPriceStartMile", "");//TODO 后续补充完整 |
| | | item.put("unitPricePerMile", "");//TODO 后续补充完整 |
| | | item.put("longDistancePrice", "");//TODO 后续补充完整 |
| | | item.put("longDistanceStartMile", "");//TODO 后续补充完整 |
| | | item.put("lowSpeedPricePerMinute", "");//TODO 后续补充完整 |
| | | item.put("nightPricePerMile", "");//TODO 后续补充完整 |
| | | item.put("nightPricePerMinute", "");//TODO 后续补充完整 |
| | | item.put("otherPrice", "");//TODO 后续补充完整 |
| | | item.put("state", "0");//TODO 后续补充完整 |
| | | item.put("updateTime", LocalDateTime.now().format(DATA_TIME_FORMATTER)); |
| | | item.put("fareRuleUrl", "");//TODO 后续补充完整 |
| | | item.put("protocolVersion", DEFAULT_PROTOCOL_VERSION); |
| | | public String pushPlatformPriceInfo(RegulationPlatformPriceInfoDTO dto) { |
| | | JSONObject item = buildPlatformPriceInfo(dto); |
| | | return pushBasicReqInfo(item,"PTYJ"); |
| | | } |
| | | |
| | |
| | | return (JSONObject) JSON.toJSON(dto); |
| | | } |
| | | |
| | | private JSONObject buildPlatformPayInfo(RegulationPlatformPayInfoDTO dto) { |
| | | if (dto == null) { |
| | | throw new RuntimeException("网约车平台公司支付信息不能为空"); |
| | | } |
| | | return (JSONObject) JSON.toJSON(dto); |
| | | } |
| | | |
| | | private JSONObject buildPlatformServiceInfo(RegulationPlatformServiceInfoDTO dto) { |
| | | if (dto == null) { |
| | | throw new RuntimeException("网约车平台公司服务机构信息不能为空"); |
| | | } |
| | | return (JSONObject) JSON.toJSON(dto); |
| | | } |
| | | |
| | | private JSONObject buildPlatformLicenseInfo(RegulationPlatformLicenseInfoDTO dto) { |
| | | if (dto == null) { |
| | | throw new RuntimeException("网约车平台公司经营许可信息不能为空"); |
| | | } |
| | | return (JSONObject) JSON.toJSON(dto); |
| | | } |
| | | |
| | | private JSONObject buildPlatformPriceInfo(RegulationPlatformPriceInfoDTO dto) { |
| | | if (dto == null) { |
| | | throw new RuntimeException("网约车平台公司计程计价方式信息不能为空"); |
| | | } |
| | | return (JSONObject) JSON.toJSON(dto); |
| | | } |
| | | |
| | | private String encodePdf(String filename) { |
| | | if (filename == null || filename.trim().isEmpty()) { |
| | | return ""; |