|
|
@@ -1,6 +1,8 @@
|
|
|
package com.jzg.quotation.zhongan.crawler.service;
|
|
|
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
+import com.jzg.commons.entity.quote.vo.CarInfoVo;
|
|
|
+import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
|
import com.jzg.quotation.commons.entity.vo.aggregated.*;
|
|
|
import com.jzg.quotation.commons.entity.vo.base.OrderBase;
|
|
|
import com.jzg.quotation.commons.service.QuotationApiBaseService;
|
|
|
@@ -27,10 +29,13 @@ public class ZhongAnQuotaionApiBaseServiceImpl implements QuotationApiBaseServic
|
|
|
String token = "";
|
|
|
String flowId = "";
|
|
|
|
|
|
+ CarInfoVo carInfoVo = quoteVo.getCarInfoVo();
|
|
|
+ CustomerInfoVo ownersInfo = quoteVo.getOwnersInfo();
|
|
|
+
|
|
|
ZhongAnCacheInputQueryParam zhongAnCacheInputQueryParam = new ZhongAnCacheInputQueryParam();
|
|
|
zhongAnCacheInputQueryParam.setInsurePlace("晋城市");
|
|
|
zhongAnCacheInputQueryParam.setInsurePlaceCode("140500");
|
|
|
- zhongAnCacheInputQueryParam.setLicenseNo(quoteVo.getCarInfoVo().getLicenseNo());
|
|
|
+ zhongAnCacheInputQueryParam.setLicenseNo(carInfoVo.getLicenseNo());
|
|
|
|
|
|
|
|
|
// 发起保险
|
|
|
@@ -38,6 +43,18 @@ public class ZhongAnQuotaionApiBaseServiceImpl implements QuotationApiBaseServic
|
|
|
zhongAnAPIService.cacheInputQuery(token, flowId, zhongAnCacheInputQueryParam);
|
|
|
|
|
|
ZhongAnCacheCarInfoParam zhongAnCacheCarInfoParam = new ZhongAnCacheCarInfoParam();
|
|
|
+ zhongAnCacheCarInfoParam.setInsurePlace("晋城市");
|
|
|
+ zhongAnCacheCarInfoParam.setInsurePlaceCode("140500");
|
|
|
+ zhongAnCacheCarInfoParam.setVehicleLicencePlateNo(carInfoVo.getLicenseNo());
|
|
|
+ zhongAnCacheCarInfoParam.setVehicleFrameNo(carInfoVo.getVinNo());
|
|
|
+ zhongAnCacheCarInfoParam.setVehicleEngineNo(carInfoVo.getEngineNo());
|
|
|
+ zhongAnCacheCarInfoParam.setVehicleRegisterDate(carInfoVo.getRegisterDate());
|
|
|
+ zhongAnCacheCarInfoParam.setVehicleOwnerName(ownersInfo.getName());
|
|
|
+ zhongAnCacheCarInfoParam.setIdentifyType("1"); // 身份证
|
|
|
+ zhongAnCacheCarInfoParam.setIdentifyNo(ownersInfo.getIdentifyNumber());
|
|
|
+ // todo
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// 保存车辆信息
|
|
|
// 此接口可能不支持并发,参看接口注释。
|