|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.quotation.chengtai.crawler.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.jzg.commons.entity.quote.vo.AttributionInformationVo;
|
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
|
import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
@@ -73,7 +74,7 @@ public class ChengTaiCrawlerRequestImpl implements ChengTaiCrawlerRequest {
|
|
|
|
|
|
ChengTaiFindCarModelResponse.DataDTO carModel = chengTaiRequestCrawlerComponent.findCarModel(quoteVo.getCarInfoVo(), modelCode, httpHeaders);
|
|
|
|
|
|
- ChengTaiGetCIModelCodeResponse ciModelCode = chengTaiRequestCrawlerComponent.getCIModelCode(carModel.getModelcode(), httpHeaders);
|
|
|
+ ChengTaiGetCIModelCodeResponse ciModelCode = chengTaiRequestCrawlerComponent.getCIModelCode(modelCode, httpHeaders);
|
|
|
// 步骤四 新车购置价
|
|
|
CarDepreciationCalculator.DepreciationResult depreciationResult = chengTaiCrawlerQuoteProcessService.generateClaimableValue(quoteVo.getCarInfoVo(), fullCarData.getPurchasePrice().toString());
|
|
|
// 步骤五 客户识别
|
|
|
@@ -87,7 +88,9 @@ public class ChengTaiCrawlerRequestImpl implements ChengTaiCrawlerRequest {
|
|
|
insuredPerson = chengTaiRequestCrawlerComponent.clientIdentify(insuredPersonInfo, "2", saleInfoBo.getSaleInfo().getComCode(), httpHeaders);
|
|
|
}
|
|
|
// 步骤五 报价
|
|
|
- ChengTaiPremiumcaRequest request = new ChengTaiPremiumcaRequest(quoteVo, carModel, policyHolder, insuredPerson, saleInfoBo, ciModelCode, depreciationResult);
|
|
|
+ ChengTaiPremiumcaRequest request = new ChengTaiPremiumcaRequest(quoteVo, carModel1, policyHolder, insuredPerson, saleInfoBo, ciModelCode, depreciationResult);
|
|
|
+ Object json = JSONObject.toJSON(request);
|
|
|
+ System.out.println(json);
|
|
|
ChengTaiPremiumcaResponse premiumca = chengTaiRequestCrawlerComponent.premiumca(request, httpHeaders);
|
|
|
// 步骤六 获取特别约定
|
|
|
Map<String, List<ChengTaiGetEngageListResponse.ResponseBodyDTO.EngageListDTO>> engageMap = chengTaiCrawlerQuoteProcessService.getEngageList(request, premiumca, httpHeaders);
|
|
|
@@ -160,7 +163,7 @@ public class ChengTaiCrawlerRequestImpl implements ChengTaiCrawlerRequest {
|
|
|
dataDTO.setJqxclassid(fullCarData.getInsCarClass());
|
|
|
dataDTO.setCimodelclass(fullCarData.getInsCarClassName());
|
|
|
dataDTO.setShorthandcode(fullCarData.getShortHandCode());
|
|
|
- dataDTO.setExhaustscale(fullCarData.getDisplacement().toString());
|
|
|
+ dataDTO.setExhaustscale(fullCarData.getDisplacement().toString().replace(".0",""));
|
|
|
dataDTO.setSeatcount(fullCarData.getApprovedPassengersCapacity().toString().replace(".0",""));
|
|
|
dataDTO.setCaryear(fullCarData.getCarYear());
|
|
|
dataDTO.setTransmissionttype(fullCarData.getTransmissionType());
|