Răsfoiți Sursa

[众安] feat(报价): queryJyytVehicleModel

wlq 1 an în urmă
părinte
comite
ce2ba9c420

+ 2 - 2
tenant/insurance/quotation-zhongan/src/main/java/com/jzg/quotation/zhongan/crawler/model/entity/ZhongAnVehicleModel.java

@@ -71,12 +71,12 @@ public class ZhongAnVehicleModel extends UnknownFieldEntity {
     /**
      * 采购价格
      */
-    private Integer purchasePrice;
+    private String purchasePrice;
 
     /**
      * 含税采购价格
      */
-    private Integer purchasePriceTax;
+    private String purchasePriceTax;
 
     /**
      * 混合动力名称

+ 30 - 1
tenant/insurance/quotation-zhongan/src/main/java/com/jzg/quotation/zhongan/crawler/service/ZhongAnQuotaionApiBaseServiceImpl.java

@@ -44,6 +44,7 @@ public class ZhongAnQuotaionApiBaseServiceImpl implements QuotationApiBaseServic
 
         // 车型查询
         ZhongAnQueryJyytVehicleModelResult zhongAnQueryJyytVehicleModelResult = zhongAnAPIService.queryJyytVehicleModel(token, flowId, carInfoVo.getVinNo());
+        ZhongAnVehicleModel minPriceVehicle = zhongAnQueryJyytVehicleModelResult.getDatas().getMinPriceVehicle();
 
         ZhongAnCacheCarInfoParam zhongAnCacheCarInfoParam = new ZhongAnCacheCarInfoParam();
         zhongAnCacheCarInfoParam.setInsurePlace("晋城市");
@@ -55,7 +56,35 @@ public class ZhongAnQuotaionApiBaseServiceImpl implements QuotationApiBaseServic
         zhongAnCacheCarInfoParam.setVehicleOwnerName(ownersInfo.getName());
         zhongAnCacheCarInfoParam.setIdentifyType("1"); // 身份证
         zhongAnCacheCarInfoParam.setIdentifyNo(ownersInfo.getIdentifyNumber());
-        // todo
+        zhongAnCacheCarInfoParam.setModelName(minPriceVehicle.getBrandName());
+        zhongAnCacheCarInfoParam.setBrandCode(minPriceVehicle.getBrandCode());
+        zhongAnCacheCarInfoParam.setVehicleName(minPriceVehicle.getVehicleName());
+        zhongAnCacheCarInfoParam.setVehicleBrand(minPriceVehicle.getBrandName());
+        zhongAnCacheCarInfoParam.setVehicleModelName(minPriceVehicle.getBrandName());
+        zhongAnCacheCarInfoParam.setVehicleModelName(minPriceVehicle.getBrandName());
+        zhongAnCacheCarInfoParam.setVehicleModelCode(minPriceVehicle.getVehicleCode());
+        zhongAnCacheCarInfoParam.setModelsJy(minPriceVehicle.getVehicleCode());
+        zhongAnCacheCarInfoParam.setCurbWeight(minPriceVehicle.getFullWeight());
+        zhongAnCacheCarInfoParam.setExhaustMeasure(minPriceVehicle.getDisplacement());
+        zhongAnCacheCarInfoParam.setPower(minPriceVehicle.getPower());
+        zhongAnCacheCarInfoParam.setCreator(minPriceVehicle.getCompanyName());
+        zhongAnCacheCarInfoParam.setVehicleAcquisitionPrice(minPriceVehicle.getPurchasePrice());
+        zhongAnCacheCarInfoParam.setVehiclePassengerCap(minPriceVehicle.getSeat());
+        zhongAnCacheCarInfoParam.setGearBoxType(minPriceVehicle.getGearBoxType());
+        zhongAnCacheCarInfoParam.setConfigName(minPriceVehicle.getConfigName());
+        zhongAnCacheCarInfoParam.setTaxType(minPriceVehicle.getKindredPriceTax());
+        zhongAnCacheCarInfoParam.setSyxClassid(minPriceVehicle.getSyxClassid());
+        zhongAnCacheCarInfoParam.setFuelType(minPriceVehicle.getPowerType());
+        zhongAnCacheCarInfoParam.setModelEnergyType("0");
+        zhongAnCacheCarInfoParam.setVehicleType("2");
+        zhongAnCacheCarInfoParam.setDesVehicleOwnerName("");
+        zhongAnCacheCarInfoParam.setVehicleModelDesc("");
+        zhongAnCacheCarInfoParam.setVehicleCap("");
+        zhongAnCacheCarInfoParam.setApplicantType("PERSONAL");
+        zhongAnCacheCarInfoParam.setOwnershipAttribute("03");
+        zhongAnCacheCarInfoParam.setUseAttribute("NONBUSINESS");
+        zhongAnCacheCarInfoParam.setSubOwnershipAttribute("");
+        zhongAnCacheCarInfoParam.setOwnershipAttribute("PER");