|
@@ -4,8 +4,10 @@ import cn.hutool.core.codec.Base64;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.jzg.commons.entity.quote.vo.CarInfoVo;
|
|
import com.jzg.commons.entity.quote.vo.CarInfoVo;
|
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
|
|
|
+import com.jzg.commons.entity.quote.vo.KindInfoVo;
|
|
|
import com.jzg.commons.entity.quote.vo.RiskInfoVo;
|
|
import com.jzg.commons.entity.quote.vo.RiskInfoVo;
|
|
|
import com.jzg.quotation.commons.entity.vo.aggregated.QuoteVo;
|
|
import com.jzg.quotation.commons.entity.vo.aggregated.QuoteVo;
|
|
|
|
|
+import com.jzg.quote.huanong.crawler.entity.HuaNongCrawlerConfigureParameters;
|
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerComInfoQueryResponse;
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerComInfoQueryResponse;
|
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerModelsQueryResponse;
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerModelsQueryResponse;
|
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerUserTypeAndProxyInfoQueryResponse;
|
|
import com.jzg.quote.huanong.crawler.entity.response.HuaNongCrawlerUserTypeAndProxyInfoQueryResponse;
|
|
@@ -18,6 +20,7 @@ import java.io.Serializable;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -50,13 +53,18 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("businessData")
|
|
@JsonProperty("businessData")
|
|
|
private BusinessDataDTO businessData;
|
|
private BusinessDataDTO businessData;
|
|
|
|
|
|
|
|
- public HuaNongCrawlerQuotedPriceRequest(String token, String username, QuoteVo quoteVo, HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, String actualValue) {
|
|
|
|
|
|
|
+ public HuaNongCrawlerQuotedPriceRequest(String token,
|
|
|
|
|
+ String username,
|
|
|
|
|
+ QuoteVo quoteVo,
|
|
|
|
|
+ HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO,
|
|
|
|
|
+ HuaNongCrawlerConfigureParameters huaNongCrawlerConfigureParameter,
|
|
|
|
|
+ String actualValue) {
|
|
|
this.head = new HuaNongCrawlerRequestBaseHead(token);
|
|
this.head = new HuaNongCrawlerRequestBaseHead(token);
|
|
|
- this.loginCom = loginCom;
|
|
|
|
|
|
|
+ this.loginCom = huaNongCrawlerConfigureParameter.getLoginComCode();
|
|
|
this.userCode = username;
|
|
this.userCode = username;
|
|
|
- this.comeCode = comeCode;
|
|
|
|
|
|
|
+ this.comeCode = huaNongCrawlerConfigureParameter.getComCode();
|
|
|
this.agentCode = "";
|
|
this.agentCode = "";
|
|
|
- this.businessData = new BusinessDataDTO(quoteVo, carModelDTO, "", "");
|
|
|
|
|
|
|
+ this.businessData = new BusinessDataDTO(quoteVo, carModelDTO, huaNongCrawlerConfigureParameter.getLoginComCode(), huaNongCrawlerConfigureParameter.getComCode(), actualValue);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -90,21 +98,9 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("threeMountFlag")
|
|
@JsonProperty("threeMountFlag")
|
|
|
private Boolean threeMountFlag;
|
|
private Boolean threeMountFlag;
|
|
|
|
|
|
|
|
- @JsonProperty("amountListData")
|
|
|
|
|
- private List<AmountListDataDTO> amountListData;
|
|
|
|
|
-
|
|
|
|
|
@JsonProperty("newEnergyAmountListData")
|
|
@JsonProperty("newEnergyAmountListData")
|
|
|
private List<NewEnergyAmountListDataDTO> newEnergyAmountListData;
|
|
private List<NewEnergyAmountListDataDTO> newEnergyAmountListData;
|
|
|
|
|
|
|
|
- @JsonProperty("BListData")
|
|
|
|
|
- private List<ListDataDTO> bListData;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("D3ListData")
|
|
|
|
|
- private List<ListDataDTO> d3ListData;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("D4ListData")
|
|
|
|
|
- private List<ListDataDTO> d4ListData;
|
|
|
|
|
-
|
|
|
|
|
@JsonProperty("ocrFlag")
|
|
@JsonProperty("ocrFlag")
|
|
|
private String ocrFlag;
|
|
private String ocrFlag;
|
|
|
|
|
|
|
@@ -154,19 +150,13 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private List<Object> glassInfo;
|
|
private List<Object> glassInfo;
|
|
|
|
|
|
|
|
|
|
|
|
|
- public BusinessDataDTO(QuoteVo quoteVo, HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, String loginCom, String comeCode) {
|
|
|
|
|
|
|
+ public BusinessDataDTO(QuoteVo quoteVo, HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, String loginCom, String comeCode, String actualValue) {
|
|
|
this.businessMain = new BusinessMainDTO(loginCom, comeCode);
|
|
this.businessMain = new BusinessMainDTO(loginCom, comeCode);
|
|
|
- this.insuredObject = new InsuredObjectDTO(carModelDTO.getFullCarData(), quoteVo.getCarInfoVo());
|
|
|
|
|
-
|
|
|
|
|
- this.saleInfo = new SaleInfoDTO();
|
|
|
|
|
|
|
+ this.insuredObject = new InsuredObjectDTO(carModelDTO, quoteVo.getCarInfoVo(), quoteVo.getOwnersInfo(), actualValue);
|
|
|
this.platFormMessageNvehBean = new PlatFormMessageNvehBeanDTO("");
|
|
this.platFormMessageNvehBean = new PlatFormMessageNvehBeanDTO("");
|
|
|
this.sum = 0;
|
|
this.sum = 0;
|
|
|
this.threeMountFlag = false;
|
|
this.threeMountFlag = false;
|
|
|
- this.amountListData = new ArrayList<>();
|
|
|
|
|
this.newEnergyAmountListData = new ArrayList<>();
|
|
this.newEnergyAmountListData = new ArrayList<>();
|
|
|
- this.bListData = ListDataDTO.getListBDataDTO();
|
|
|
|
|
- this.d3ListData = ListDataDTO.getListDDataDTO();
|
|
|
|
|
- this.d4ListData = ListDataDTO.getListDDataDTO();
|
|
|
|
|
this.nvehInfo = new ArrayList<>();
|
|
this.nvehInfo = new ArrayList<>();
|
|
|
this.homeInfo = new ArrayList<>();
|
|
this.homeInfo = new ArrayList<>();
|
|
|
this.glassInfo = new ArrayList<>();
|
|
this.glassInfo = new ArrayList<>();
|
|
@@ -181,7 +171,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
this.centerFlag = "";
|
|
this.centerFlag = "";
|
|
|
this.centerText = "";
|
|
this.centerText = "";
|
|
|
// 险种
|
|
// 险种
|
|
|
- this.contract = ContractDTO.build(quoteVo.getCiRiskInfoVo(), quoteVo.getBiRiskInfoVo());
|
|
|
|
|
|
|
+ this.contract = ContractDTO.build(quoteVo.getCiRiskInfoVo(), quoteVo.getBiRiskInfoVo(), quoteVo.getKindInfoVo());
|
|
|
// 人员
|
|
// 人员
|
|
|
this.customer = CustomerDTO.build(quoteVo.getPolicyHolderInfo(), quoteVo.getInsuredPersonInfo(), quoteVo.getOwnersInfo());
|
|
this.customer = CustomerDTO.build(quoteVo.getPolicyHolderInfo(), quoteVo.getInsuredPersonInfo(), quoteVo.getOwnersInfo());
|
|
|
}
|
|
}
|
|
@@ -298,7 +288,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
this.isRunFlag = isRunFlag;
|
|
this.isRunFlag = isRunFlag;
|
|
|
this.bjLogId = "";
|
|
this.bjLogId = "";
|
|
|
this.lastPolicyNos = Collections.emptyList();
|
|
this.lastPolicyNos = Collections.emptyList();
|
|
|
- this.isAloneInsureNveh = isAloneInsureNveh;
|
|
|
|
|
|
|
+ this.isAloneInsureNveh = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -315,16 +305,12 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private SimpleStadarCarDTO simpleStadarCar;
|
|
private SimpleStadarCarDTO simpleStadarCar;
|
|
|
@JsonProperty("specializedDevice")
|
|
@JsonProperty("specializedDevice")
|
|
|
private List<Object> specializedDevice;
|
|
private List<Object> specializedDevice;
|
|
|
- @JsonProperty("violation")
|
|
|
|
|
- private List<Object> violation;
|
|
|
|
|
|
|
|
|
|
- public InsuredObjectDTO(HuaNongCrawlerModelsQueryResponse.CarModelDTO.FullCarDataDTO fullCarDataDTO, CarInfoVo carInfoVo) {
|
|
|
|
|
- this.chargingPostInfos = chargingPostInfos;
|
|
|
|
|
- this.platformCar = platformCar;
|
|
|
|
|
- this.policyCar = policyCar;
|
|
|
|
|
- this.simpleStadarCar = new SimpleStadarCarDTO(fullCarDataDTO, carInfoVo.getSeatCount(), carInfoVo.getCompleteKerbMass(), carInfoVo.getLimitLoad());
|
|
|
|
|
- this.specializedDevice = specializedDevice;
|
|
|
|
|
- this.violation = violation;
|
|
|
|
|
|
|
+ public InsuredObjectDTO(HuaNongCrawlerModelsQueryResponse.CarModelDTO carModelDTO, CarInfoVo carInfoVo, CustomerInfoVo ownersInfo, String actualValue) {
|
|
|
|
|
+ this.chargingPostInfos = Collections.emptyList();
|
|
|
|
|
+ this.platformCar = new PlatformCarDTO(carModelDTO.getPlatFormCar());
|
|
|
|
|
+ this.policyCar = new PolicyCarDTO(carInfoVo, ownersInfo, carModelDTO.getFullCarData(), actualValue);
|
|
|
|
|
+ this.simpleStadarCar = new SimpleStadarCarDTO(carModelDTO.getFullCarData(), carInfoVo.getSeatCount(), carInfoVo.getCompleteKerbMass(), carInfoVo.getLimitLoad());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -356,6 +342,23 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private String series;
|
|
private String series;
|
|
|
@JsonProperty("tradeNmae")
|
|
@JsonProperty("tradeNmae")
|
|
|
private String tradeNmae;
|
|
private String tradeNmae;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public PlatformCarDTO(HuaNongCrawlerModelsQueryResponse.CarModelDTO.PlatFormCarDTO platFormCar) {
|
|
|
|
|
+ this.basicRateCode = "";
|
|
|
|
|
+ this.brand = "";
|
|
|
|
|
+ this.carName = platFormCar.getCarName();
|
|
|
|
|
+ this.categoryCode = platFormCar.getCategoryCode();
|
|
|
|
|
+ this.categoryName = platFormCar.getCategoryName();
|
|
|
|
|
+ this.configType = platFormCar.getConfigType();
|
|
|
|
|
+ this.deptCode = platFormCar.getDeptCode();
|
|
|
|
|
+ this.deptName = platFormCar.getDeptName();
|
|
|
|
|
+ this.modelCodeHX = "";
|
|
|
|
|
+ this.modelIdCode = "";
|
|
|
|
|
+ this.noticeType = "";
|
|
|
|
|
+ this.series = "";
|
|
|
|
|
+ this.tradeNmae = "";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -392,7 +395,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("consultValue")
|
|
@JsonProperty("consultValue")
|
|
|
private String consultValue;
|
|
private String consultValue;
|
|
|
@JsonProperty("contrastFlag")
|
|
@JsonProperty("contrastFlag")
|
|
|
- private Boolean contrastFlag;
|
|
|
|
|
|
|
+ private String contrastFlag;
|
|
|
@JsonProperty("contrastPrice")
|
|
@JsonProperty("contrastPrice")
|
|
|
private Integer contrastPrice;
|
|
private Integer contrastPrice;
|
|
|
@JsonProperty("damagedFactorGrade")
|
|
@JsonProperty("damagedFactorGrade")
|
|
@@ -440,9 +443,9 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("newCarSign")
|
|
@JsonProperty("newCarSign")
|
|
|
private Boolean newCarSign;
|
|
private Boolean newCarSign;
|
|
|
@JsonProperty("noDamageYears")
|
|
@JsonProperty("noDamageYears")
|
|
|
- private Integer noDamageYears;
|
|
|
|
|
|
|
+ private String noDamageYears;
|
|
|
@JsonProperty("noLicenseFlag")
|
|
@JsonProperty("noLicenseFlag")
|
|
|
- private Boolean noLicenseFlag;
|
|
|
|
|
|
|
+ private String noLicenseFlag;
|
|
|
@JsonProperty("otherEnergyTypeDesc")
|
|
@JsonProperty("otherEnergyTypeDesc")
|
|
|
private String otherEnergyTypeDesc;
|
|
private String otherEnergyTypeDesc;
|
|
|
@JsonProperty("pickUpCarFlag")
|
|
@JsonProperty("pickUpCarFlag")
|
|
@@ -466,7 +469,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("runArea")
|
|
@JsonProperty("runArea")
|
|
|
private String runArea;
|
|
private String runArea;
|
|
|
@JsonProperty("runMiles")
|
|
@JsonProperty("runMiles")
|
|
|
- private Integer runMiles;
|
|
|
|
|
|
|
+ private String runMiles;
|
|
|
@JsonProperty("siChuanUsageType")
|
|
@JsonProperty("siChuanUsageType")
|
|
|
private String siChuanUsageType;
|
|
private String siChuanUsageType;
|
|
|
@JsonProperty("specialFlag")
|
|
@JsonProperty("specialFlag")
|
|
@@ -474,7 +477,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("taxInclued")
|
|
@JsonProperty("taxInclued")
|
|
|
private Boolean taxInclued;
|
|
private Boolean taxInclued;
|
|
|
@JsonProperty("topSpeed")
|
|
@JsonProperty("topSpeed")
|
|
|
- private Integer topSpeed;
|
|
|
|
|
|
|
+ private String topSpeed;
|
|
|
@JsonProperty("transferDate")
|
|
@JsonProperty("transferDate")
|
|
|
private String transferDate;
|
|
private String transferDate;
|
|
|
@JsonProperty("transferMark")
|
|
@JsonProperty("transferMark")
|
|
@@ -484,7 +487,7 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("useYears")
|
|
@JsonProperty("useYears")
|
|
|
private String useYears;
|
|
private String useYears;
|
|
|
@JsonProperty("useYearsDetail")
|
|
@JsonProperty("useYearsDetail")
|
|
|
- private Double useYearsDetail;
|
|
|
|
|
|
|
+ private String useYearsDetail;
|
|
|
@JsonProperty("vIN")
|
|
@JsonProperty("vIN")
|
|
|
private String vIN;
|
|
private String vIN;
|
|
|
@JsonProperty("vehicleStatusJG")
|
|
@JsonProperty("vehicleStatusJG")
|
|
@@ -497,6 +500,78 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private Boolean otherCarFlag;
|
|
private Boolean otherCarFlag;
|
|
|
@JsonProperty("certificateDate")
|
|
@JsonProperty("certificateDate")
|
|
|
private String certificateDate;
|
|
private String certificateDate;
|
|
|
|
|
+
|
|
|
|
|
+ public PolicyCarDTO(CarInfoVo carInfoVo, CustomerInfoVo ownersInfo, HuaNongCrawlerModelsQueryResponse.CarModelDTO.FullCarDataDTO fullCarDataDTO, String actualValue) {
|
|
|
|
|
+ this.actualValue = actualValue;
|
|
|
|
|
+ this.bankCode = "";
|
|
|
|
|
+ this.bankName = "";
|
|
|
|
|
+ this.beiJingUsageType = "";
|
|
|
|
|
+ this.carCheckReason = "";
|
|
|
|
|
+ this.carCheckStatus = "";
|
|
|
|
|
+ this.carChecker = "";
|
|
|
|
|
+ this.carDetails = "";
|
|
|
|
|
+ this.carInjury = "";
|
|
|
|
|
+ this.carKind = fullCarDataDTO.getCarKind();
|
|
|
|
|
+ this.carRenewalFlagBI = "0";
|
|
|
|
|
+ this.carRenewalFlagCI = "0";
|
|
|
|
|
+ this.certificateNo = "";
|
|
|
|
|
+ this.certificateType = "";
|
|
|
|
|
+ this.consultValue = actualValue;
|
|
|
|
|
+ this.contrastFlag = "";
|
|
|
|
|
+ this.contrastPrice = 0;
|
|
|
|
|
+ this.damagedFactorGrade = "";
|
|
|
|
|
+ this.ecdemicVehicleFlag = false;
|
|
|
|
|
+ this.endorseTransferFlag = false;
|
|
|
|
|
+ this.engine = carInfoVo.getEngineNo();
|
|
|
|
|
+ this.firstBeneMan = "";
|
|
|
|
|
+ this.fleetNo = "";
|
|
|
|
|
+ this.hKFlag = false;
|
|
|
|
|
+ this.hfcode = fullCarDataDTO.getHfcode();
|
|
|
|
|
+ this.hfname = fullCarDataDTO.getHfname();
|
|
|
|
|
+ this.insCarClass = fullCarDataDTO.getInsCarClass();
|
|
|
|
|
+ this.isNewEnergyFlag = fullCarDataDTO.getDisPlayFlag();
|
|
|
|
|
+ this.issueDate = carInfoVo.getIssueDate();
|
|
|
|
|
+ this.lfDate = "";
|
|
|
|
|
+ this.lkxcFlag = false;
|
|
|
|
|
+ this.loanStatus = false;
|
|
|
|
|
+ this.loanVehicleFlag = false;
|
|
|
|
|
+ this.model = fullCarDataDTO.getModelName();
|
|
|
|
|
+ this.monthDepRate = 0.01;
|
|
|
|
|
+ this.motorUsageTypeCode = carInfoVo.getVehicleUseCode();
|
|
|
|
|
+ this.motorTypeCode = carInfoVo.getCarKindCode();
|
|
|
|
|
+ this.motorUsageTypeCodeJG = "";
|
|
|
|
|
+ this.newCarSign = false;
|
|
|
|
|
+ this.noDamageYears = "";
|
|
|
|
|
+ this.noLicenseFlag = "";
|
|
|
|
|
+ this.otherEnergyTypeDesc = "";
|
|
|
|
|
+ this.pickUpCarFlag = false;
|
|
|
|
|
+ this.plateColorCode = "";
|
|
|
|
|
+ this.plateNo = carInfoVo.getLicenseNo();
|
|
|
|
|
+ this.plateType = "";
|
|
|
|
|
+ this.platformOwnerName = ownersInfo.getName();
|
|
|
|
|
+ this.pmQueryNo = "";
|
|
|
|
|
+ this.precisionServiceSearch = false;
|
|
|
|
|
+ this.pureRange = 0;
|
|
|
|
|
+ this.registerDate = carInfoVo.getRegisterDate();
|
|
|
|
|
+ this.runArea = "";
|
|
|
|
|
+ this.runMiles = "";
|
|
|
|
|
+ this.siChuanUsageType = "0";
|
|
|
|
|
+ this.specialFlag = false;
|
|
|
|
|
+ this.taxInclued = false;
|
|
|
|
|
+ this.topSpeed = "";
|
|
|
|
|
+ this.transferDate = carInfoVo.getTransferDate();
|
|
|
|
|
+ this.transferMark = carInfoVo.isTransfer();
|
|
|
|
|
+ this.transferMarkBi = carInfoVo.isBiTransfer();
|
|
|
|
|
+ this.useYears = "";
|
|
|
|
|
+ this.useYearsDetail = "";
|
|
|
|
|
+ this.vIN = carInfoVo.getVinNo();
|
|
|
|
|
+ this.vehicleStatusJG = "";
|
|
|
|
|
+ this.vehicleType = carInfoVo.getCarTypeCode();
|
|
|
|
|
+ this.checkFlag = "1";
|
|
|
|
|
+ this.otherCarFlag = true;
|
|
|
|
|
+ this.certificateDate = "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -920,6 +995,8 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class ContractMainDTO {
|
|
public static class ContractMainDTO {
|
|
|
|
|
+ @JsonProperty("contractNo")
|
|
|
|
|
+ private String contractNo;
|
|
|
@JsonProperty("expenseRate")
|
|
@JsonProperty("expenseRate")
|
|
|
private Integer expenseRate;
|
|
private Integer expenseRate;
|
|
|
@JsonProperty("productionDate")
|
|
@JsonProperty("productionDate")
|
|
@@ -1122,24 +1199,6 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class AmountListDataDTO {
|
|
|
|
|
- @JsonProperty("amountList")
|
|
|
|
|
- private List<AmountListDTO> amountList;
|
|
|
|
|
- @JsonProperty("kindCode")
|
|
|
|
|
- private String kindCode;
|
|
|
|
|
-
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class AmountListDTO {
|
|
|
|
|
- @JsonProperty("code")
|
|
|
|
|
- private String code;
|
|
|
|
|
- @JsonProperty("value")
|
|
|
|
|
- private String value;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class NewEnergyAmountListDataDTO {
|
|
public static class NewEnergyAmountListDataDTO {
|
|
@@ -1158,49 +1217,6 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @AllArgsConstructor
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class ListDataDTO {
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("code")
|
|
|
|
|
- private String code;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("value")
|
|
|
|
|
- private String value;
|
|
|
|
|
-
|
|
|
|
|
- public static List<ListDataDTO> getListBDataDTO() {
|
|
|
|
|
- List<ListDataDTO> list = new ArrayList<>();
|
|
|
|
|
- list.add(new ListDataDTO("100000", "10万元"));
|
|
|
|
|
- list.add(new ListDataDTO("150000", "15万元"));
|
|
|
|
|
- list.add(new ListDataDTO("200000", "20万元"));
|
|
|
|
|
- list.add(new ListDataDTO("300000", "30万元"));
|
|
|
|
|
- list.add(new ListDataDTO("500000", "50万元"));
|
|
|
|
|
- list.add(new ListDataDTO("1000000", "100万元"));
|
|
|
|
|
- list.add(new ListDataDTO("1500000", "150万元"));
|
|
|
|
|
- list.add(new ListDataDTO("2000000", "200万元"));
|
|
|
|
|
- list.add(new ListDataDTO("3000000", "300万元"));
|
|
|
|
|
- list.add(new ListDataDTO("4000000", "400万元"));
|
|
|
|
|
- list.add(new ListDataDTO("5000000", "500万元"));
|
|
|
|
|
- return list;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public static List<ListDataDTO> getListDDataDTO() {
|
|
|
|
|
- List<ListDataDTO> list = new ArrayList<>();
|
|
|
|
|
- list.add(new ListDataDTO("5000", "0.5万元"));
|
|
|
|
|
- list.add(new ListDataDTO("10000", "1万元"));
|
|
|
|
|
- list.add(new ListDataDTO("20000", "2万元"));
|
|
|
|
|
- list.add(new ListDataDTO("30000", "3万元"));
|
|
|
|
|
- list.add(new ListDataDTO("50000", "5万元"));
|
|
|
|
|
- list.add(new ListDataDTO("100000", "10万元"));
|
|
|
|
|
- list.add(new ListDataDTO("150000", "15万元"));
|
|
|
|
|
- list.add(new ListDataDTO("200000", "20万元"));
|
|
|
|
|
- list.add(new ListDataDTO("500000", "50万元"));
|
|
|
|
|
- return list;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class ContractDTO {
|
|
public static class ContractDTO {
|
|
@@ -1227,20 +1243,25 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("coverage")
|
|
@JsonProperty("coverage")
|
|
|
private List<CoverageDTO> coverage;
|
|
private List<CoverageDTO> coverage;
|
|
|
|
|
|
|
|
- public static ContractDTO getCiContractDTO(RiskInfoVo ciRiskInfoVo) {
|
|
|
|
|
|
|
+ private static ContractDTO getCiContractDTO(RiskInfoVo ciRiskInfoVo) {
|
|
|
ContractDTO contractDTO = new ContractDTO();
|
|
ContractDTO contractDTO = new ContractDTO();
|
|
|
contractDTO.setContractMain(new ContractMainDTO());
|
|
contractDTO.setContractMain(new ContractMainDTO());
|
|
|
|
|
|
|
|
return new ContractDTO();
|
|
return new ContractDTO();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static ContractDTO getBiContractDTO(RiskInfoVo biRiskInfoVo) {
|
|
|
|
|
|
|
+ private static ContractDTO getBiContractDTO(RiskInfoVo biRiskInfoVo, List<KindInfoVo> kindInfoVo) {
|
|
|
|
|
+ ContractDTO contractDTO = new ContractDTO();
|
|
|
|
|
+
|
|
|
|
|
+ List<CoverageDTO> coverageDTOS = kindInfoVo.stream().map(kind -> new CoverageDTO(biRiskInfoVo, kind)).toList();
|
|
|
|
|
+ contractDTO.setCoverage(coverageDTOS);
|
|
|
|
|
|
|
|
return new ContractDTO();
|
|
return new ContractDTO();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static List<ContractDTO> build(RiskInfoVo ciRiskInfoVo, RiskInfoVo biRiskInfoVo) {
|
|
|
|
|
- return List.of(getCiContractDTO(ciRiskInfoVo), getBiContractDTO(biRiskInfoVo));
|
|
|
|
|
|
|
+
|
|
|
|
|
+ private static List<ContractDTO> build(RiskInfoVo ciRiskInfoVo, RiskInfoVo biRiskInfoVo, List<KindInfoVo> kindInfoVo) {
|
|
|
|
|
+ return List.of(getCiContractDTO(ciRiskInfoVo), getBiContractDTO(biRiskInfoVo, kindInfoVo));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -1730,15 +1751,15 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
@JsonProperty("commission")
|
|
@JsonProperty("commission")
|
|
|
private Integer commission;
|
|
private Integer commission;
|
|
|
@JsonProperty("coverageAdjustRate")
|
|
@JsonProperty("coverageAdjustRate")
|
|
|
- private Integer coverageAdjustRate;
|
|
|
|
|
|
|
+ private String coverageAdjustRate;
|
|
|
@JsonProperty("coveragePremium")
|
|
@JsonProperty("coveragePremium")
|
|
|
- private Integer coveragePremium;
|
|
|
|
|
|
|
+ private String coveragePremium;
|
|
|
@JsonProperty("coveragePremiumRange")
|
|
@JsonProperty("coveragePremiumRange")
|
|
|
- private Integer coveragePremiumRange;
|
|
|
|
|
|
|
+ private String coveragePremiumRange;
|
|
|
@JsonProperty("coverageRiskPremium")
|
|
@JsonProperty("coverageRiskPremium")
|
|
|
- private Integer coverageRiskPremium;
|
|
|
|
|
|
|
+ private String coverageRiskPremium;
|
|
|
@JsonProperty("coverageStandardPremium")
|
|
@JsonProperty("coverageStandardPremium")
|
|
|
- private Integer coverageStandardPremium;
|
|
|
|
|
|
|
+ private String coverageStandardPremium;
|
|
|
@JsonProperty("deductible")
|
|
@JsonProperty("deductible")
|
|
|
private Integer deductible;
|
|
private Integer deductible;
|
|
|
@JsonProperty("deductibleRate")
|
|
@JsonProperty("deductibleRate")
|
|
@@ -1815,6 +1836,55 @@ public class HuaNongCrawlerQuotedPriceRequest implements Serializable, HuaNongHe
|
|
|
private Integer optNotDeductibleFlag;
|
|
private Integer optNotDeductibleFlag;
|
|
|
@JsonProperty("ductibleRate")
|
|
@JsonProperty("ductibleRate")
|
|
|
private String ductibleRate;
|
|
private String ductibleRate;
|
|
|
|
|
+
|
|
|
|
|
+ private CoverageDTO(RiskInfoVo biRiskInfoVo, KindInfoVo kind) {
|
|
|
|
|
+ this.amount = kind.getAmount();
|
|
|
|
|
+ this.basePremium = 0;
|
|
|
|
|
+ this.commission = 0;
|
|
|
|
|
+ this.coverageAdjustRate = "";
|
|
|
|
|
+ this.coveragePremium = "";
|
|
|
|
|
+ this.coveragePremiumRange = "";
|
|
|
|
|
+ this.coverageRiskPremium = "";
|
|
|
|
|
+ this.coverageStandardPremium = "";
|
|
|
|
|
+ this.deductible = 0;
|
|
|
|
|
+ this.deductibleRate = 0;
|
|
|
|
|
+ this.dutyCode = "";
|
|
|
|
|
+ this.dutyName = "";
|
|
|
|
|
+ this.eachDamageLimitAmount = 0;
|
|
|
|
|
+ this.enndorFormual = "";
|
|
|
|
|
+ this.expiryDate = biRiskInfoVo.getEndDate();
|
|
|
|
|
+ this.flag = "";
|
|
|
|
|
+ this.kindCode = kind.getKindCode();
|
|
|
|
|
+ this.kindName = kind.getKindName();
|
|
|
|
|
+ this.kindNo = 0;
|
|
|
|
|
+ this.kindType = "";
|
|
|
|
|
+ this.modeCode = "";
|
|
|
|
|
+ this.modeName = "";
|
|
|
|
|
+ this.noTaxPremium = 0;
|
|
|
|
|
+ this.noTaxPremiumChg = 0;
|
|
|
|
|
+ this.perRate = 0;
|
|
|
|
|
+ this.perRateExt = 0;
|
|
|
|
|
+ this.profitRate = 0;
|
|
|
|
|
+ this.quantity = Integer.valueOf(kind.getQuantity());
|
|
|
|
|
+ this.rate = 0;
|
|
|
|
|
+ this.returnPremium = 0;
|
|
|
|
|
+ this.seatCount = "";
|
|
|
|
|
+ this.serviceTimes = "";
|
|
|
|
|
+ this.shortRate = 0;
|
|
|
|
|
+ this.shortRateType = "";
|
|
|
|
|
+ this.surrenderPremium = 0;
|
|
|
|
|
+ this.term = "";
|
|
|
|
|
+ this.unitAmount = kind.getUnitAmount();
|
|
|
|
|
+ this.unitPremium = 0;
|
|
|
|
|
+ this.validDate = biRiskInfoVo.getStartDate();
|
|
|
|
|
+ this.vat = 0;
|
|
|
|
|
+ this.vatChg = 0;
|
|
|
|
|
+ this.calculateFlag1 = "";
|
|
|
|
|
+ this.choosed = false;
|
|
|
|
|
+ this.notDeductibleFlag = false;
|
|
|
|
|
+ this.optNotDeductibleFlag = 0;
|
|
|
|
|
+ this.ductibleRate = "";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|