|
@@ -3,15 +3,22 @@ package com.jzg.quotation.guoren.crawler.entity.request;
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.jzg.commons.entity.quote.vo.*;
|
|
import com.jzg.commons.entity.quote.vo.*;
|
|
|
|
|
+import com.jzg.commons.exception.SystemException;
|
|
|
import com.jzg.quotation.commons.utils.TimeProcessing;
|
|
import com.jzg.quotation.commons.utils.TimeProcessing;
|
|
|
|
|
+import com.jzg.quotation.guoren.crawler.constant.enums.InsuranceMap;
|
|
|
|
|
+import com.jzg.quotation.guoren.crawler.entity.dto.CiInsureDemandDTO;
|
|
|
|
|
+import com.jzg.quotation.guoren.crawler.entity.dto.PrptengageListDTO;
|
|
|
|
|
+import com.jzg.quotation.guoren.crawler.entity.po.InsuranceItem;
|
|
|
import com.jzg.quotation.guoren.crawler.entity.po.TaxResult;
|
|
import com.jzg.quotation.guoren.crawler.entity.po.TaxResult;
|
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerGetAgentAgreementResponse;
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerGetAgentAgreementResponse;
|
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerGetCarPriceData;
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerGetCarPriceData;
|
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerInitSelectResponse;
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerInitSelectResponse;
|
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerWriteBackAddressData;
|
|
import com.jzg.quotation.guoren.crawler.entity.response.GuoRenCrawlerWriteBackAddressData;
|
|
|
import com.jzg.quotation.guoren.crawler.utils.VehicleTaxCalculator;
|
|
import com.jzg.quotation.guoren.crawler.utils.VehicleTaxCalculator;
|
|
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -47,7 +54,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
} else {
|
|
} else {
|
|
|
loginRiskCode = "0507";
|
|
loginRiskCode = "0507";
|
|
|
}
|
|
}
|
|
|
- String today = TimeProcessing.nowDateTime();
|
|
|
|
|
|
|
+ String today = TimeProcessing.nowDate();
|
|
|
CiDTO.PrpTcarshipTaxDTO prpTcarshipTax = new CiDTO.PrpTcarshipTaxDTO(quoteVo.getPolicyHolderInfo(), prpTmainDTO.getComCode(), prpTitemCar);
|
|
CiDTO.PrpTcarshipTaxDTO prpTcarshipTax = new CiDTO.PrpTcarshipTaxDTO(quoteVo.getPolicyHolderInfo(), prpTmainDTO.getComCode(), prpTitemCar);
|
|
|
this.basePartVo = new BasePartVoDTO(prpTmainDTO.getComCode(), loginRiskCode, prpTmainDTO.getOperatorCode());
|
|
this.basePartVo = new BasePartVoDTO(prpTmainDTO.getComCode(), loginRiskCode, prpTmainDTO.getOperatorCode());
|
|
|
this.bi = new BiDTO(quoteVo.getBiRiskInfoVo(), quoteVo.getKindInfoVo(), today, prpTitemCar.getTermsSystem(), prpTitemCar.getClauseTypeSystem());
|
|
this.bi = new BiDTO(quoteVo.getBiRiskInfoVo(), quoteVo.getKindInfoVo(), today, prpTitemCar.getTermsSystem(), prpTitemCar.getClauseTypeSystem());
|
|
@@ -345,7 +352,12 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
@JsonProperty("noCarCodes")
|
|
@JsonProperty("noCarCodes")
|
|
|
private String noCarCodes;
|
|
private String noCarCodes;
|
|
|
|
|
|
|
|
- public PrpTmainDTO(GuoRenCrawlerInitSelectResponse.CodeDataDTO comCodeData, GuoRenCrawlerInitSelectResponse.CodeDataDTO agentCodeData, GuoRenCrawlerGetAgentAgreementResponse.PrpDagreeDetailDtoListDTO agentAgreement, GuoRenCrawlerInitSelectResponse.CodeDataDTO handlerCodeData, GuoRenCrawlerInitSelectResponse.CodeDataDTO unitMaintenanceCodeData, String businessSources, String username) {
|
|
|
|
|
|
|
+ @JsonProperty("cooprOutletsName")
|
|
|
|
|
+ private String cooprOutletsName;
|
|
|
|
|
+
|
|
|
|
|
+ public PrpTmainDTO(GuoRenCrawlerInitSelectResponse.CodeDataDTO comCodeData, GuoRenCrawlerInitSelectResponse.CodeDataDTO agentCodeData,
|
|
|
|
|
+ GuoRenCrawlerGetAgentAgreementResponse.PrpDagreeDetailDtoListDTO agentAgreement, GuoRenCrawlerInitSelectResponse.CodeDataDTO handlerCodeData,
|
|
|
|
|
+ GuoRenCrawlerInitSelectResponse.CodeDataDTO unitMaintenanceCodeData, String businessSources, String username) {
|
|
|
String today = TimeProcessing.nowDate();
|
|
String today = TimeProcessing.nowDate();
|
|
|
this.agreementNo = agentAgreement.getAgreementNo();
|
|
this.agreementNo = agentAgreement.getAgreementNo();
|
|
|
this.project = "";
|
|
this.project = "";
|
|
@@ -394,6 +406,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.goodCodes = Collections.emptyList();
|
|
this.goodCodes = Collections.emptyList();
|
|
|
this.noCarPremium = 0;
|
|
this.noCarPremium = 0;
|
|
|
this.business = null;
|
|
this.business = null;
|
|
|
|
|
+ this.cooprOutletsName = "";
|
|
|
this.operatorCode = username;
|
|
this.operatorCode = username;
|
|
|
this.signDate = today;
|
|
this.signDate = today;
|
|
|
this.loginComCode = comCodeData.getCodeCode();
|
|
this.loginComCode = comCodeData.getCodeCode();
|
|
@@ -808,7 +821,23 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
private String derailleurType;
|
|
private String derailleurType;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty("enrollDateValueStatus")
|
|
|
|
|
+ private Integer enrollDateValueStatus;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("postCode")
|
|
|
|
|
+ private String postCode;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("ocr_invoice_flag")
|
|
|
|
|
+ private String ocrInvoiceFlag;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("identiFication")
|
|
|
|
|
+ private Integer identiFication;
|
|
|
|
|
+
|
|
|
public PrpTitemCarDTO(GuoRenCrawlerGetCarPriceRequest getCarPriceRequest, GuoRenCrawlerGetCarPriceData carPriceData) {
|
|
public PrpTitemCarDTO(GuoRenCrawlerGetCarPriceRequest getCarPriceRequest, GuoRenCrawlerGetCarPriceData carPriceData) {
|
|
|
|
|
+ this.enrollDateValueStatus = getCarPriceRequest.getEnrollDateValueStatus();
|
|
|
|
|
+ this.postCode = getCarPriceRequest.getPostCode();
|
|
|
|
|
+ this.ocrInvoiceFlag = getCarPriceRequest.getOcrInvoiceFlag();
|
|
|
|
|
+
|
|
|
this.chargingpostFlag = getCarPriceRequest.getChargingpostFlag();
|
|
this.chargingpostFlag = getCarPriceRequest.getChargingpostFlag();
|
|
|
this.proposalNo = "";
|
|
this.proposalNo = "";
|
|
|
this.carInsuredRelation = getCarPriceRequest.getCarInsuredRelation();
|
|
this.carInsuredRelation = getCarPriceRequest.getCarInsuredRelation();
|
|
@@ -871,7 +900,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.lossConditionCode = getCarPriceRequest.getAgentCode();
|
|
this.lossConditionCode = getCarPriceRequest.getAgentCode();
|
|
|
this.idValidDate = getCarPriceRequest.getIdValidDate();
|
|
this.idValidDate = getCarPriceRequest.getIdValidDate();
|
|
|
this.idvalidStartDate = getCarPriceRequest.getIdvalidStartDate();
|
|
this.idvalidStartDate = getCarPriceRequest.getIdvalidStartDate();
|
|
|
- this.sex = getCarPriceRequest.getCarProvinceName();
|
|
|
|
|
|
|
+ this.sex = getCarPriceRequest.getSex();
|
|
|
this.power = getCarPriceRequest.getPower();
|
|
this.power = getCarPriceRequest.getPower();
|
|
|
this.powerLB = getCarPriceRequest.getPowerLB();
|
|
this.powerLB = getCarPriceRequest.getPowerLB();
|
|
|
this.brandCode = getCarPriceRequest.getBrandCode();
|
|
this.brandCode = getCarPriceRequest.getBrandCode();
|
|
@@ -928,6 +957,9 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.makeDate = carPriceData.getMakeDate();
|
|
this.makeDate = carPriceData.getMakeDate();
|
|
|
this.identify = "1";
|
|
this.identify = "1";
|
|
|
this.derailleurType = carPriceData.getDerailleurType();
|
|
this.derailleurType = carPriceData.getDerailleurType();
|
|
|
|
|
+ this.powertypecode = carPriceData.getPowertypecode();
|
|
|
|
|
+ this.identiFication = getCarPriceRequest.getIdentiFication();
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1241,7 +1273,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
@JsonProperty("insuredLinkerIdentifiNumber")
|
|
@JsonProperty("insuredLinkerIdentifiNumber")
|
|
|
private String insuredLinkerIdentifiNumber;
|
|
private String insuredLinkerIdentifiNumber;
|
|
|
|
|
|
|
|
- @JsonProperty("Birthday")
|
|
|
|
|
|
|
+ @JsonProperty("birthday")
|
|
|
private String birthday;
|
|
private String birthday;
|
|
|
|
|
|
|
|
@JsonProperty("appliRegisteredCapital")
|
|
@JsonProperty("appliRegisteredCapital")
|
|
@@ -1271,7 +1303,21 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
@JsonProperty("insuredUnitcodeTimesLongFlag")
|
|
@JsonProperty("insuredUnitcodeTimesLongFlag")
|
|
|
private String insuredUnitcodeTimesLongFlag;
|
|
private String insuredUnitcodeTimesLongFlag;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty("appliNationalityCode")
|
|
|
|
|
+ private String appliNationalityCode;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("insuredNationalityCode")
|
|
|
|
|
+ private String insuredNationalityCode;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("agentidcardtype")
|
|
|
|
|
+ private String agentidcardtype;
|
|
|
|
|
+
|
|
|
public PrpTinsuredDTO(CustomerInfoVo policyHolderInfo, CustomerInfoVo insuredPersonInfo, GuoRenCrawlerWriteBackAddressData policyHolderAddr, GuoRenCrawlerWriteBackAddressData insuredPersonAddr, String ownerBirthday) {
|
|
public PrpTinsuredDTO(CustomerInfoVo policyHolderInfo, CustomerInfoVo insuredPersonInfo, GuoRenCrawlerWriteBackAddressData policyHolderAddr, GuoRenCrawlerWriteBackAddressData insuredPersonAddr, String ownerBirthday) {
|
|
|
|
|
+
|
|
|
|
|
+ this.appliNationalityCode = "156";
|
|
|
|
|
+ this.insuredNationalityCode = "156";
|
|
|
|
|
+ this.agentidcardtype = "01";
|
|
|
|
|
+
|
|
|
this.appliName = policyHolderInfo.getName();
|
|
this.appliName = policyHolderInfo.getName();
|
|
|
this.appliIdentifyType = "01";
|
|
this.appliIdentifyType = "01";
|
|
|
this.appliIdentifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
this.appliIdentifyNumber = policyHolderInfo.getIdentifyNumber();
|
|
@@ -1279,17 +1325,17 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.appliMobile = policyHolderInfo.getMobile();
|
|
this.appliMobile = policyHolderInfo.getMobile();
|
|
|
this.appliAddress = policyHolderInfo.getAddr();
|
|
this.appliAddress = policyHolderInfo.getAddr();
|
|
|
this.appliPostCode = policyHolderAddr.getCityPostCode();
|
|
this.appliPostCode = policyHolderAddr.getCityPostCode();
|
|
|
- this.appliInsuredNature = policyHolderInfo.getPersonType();
|
|
|
|
|
|
|
+ this.appliInsuredNature = "3";
|
|
|
this.appliProvinceName = policyHolderInfo.getProvince();
|
|
this.appliProvinceName = policyHolderInfo.getProvince();
|
|
|
this.appliCityName = policyHolderInfo.getCity();
|
|
this.appliCityName = policyHolderInfo.getCity();
|
|
|
this.appliSex = policyHolderInfo.getGender();
|
|
this.appliSex = policyHolderInfo.getGender();
|
|
|
- this.appliIDValidDate = policyHolderInfo.getIdentifyValidDate();
|
|
|
|
|
- this.appliIDValidStartDate = policyHolderInfo.getIdentifyValidEndDate();
|
|
|
|
|
|
|
+ this.appliIDValidDate = policyHolderInfo.getIdentifyValidEndDate();
|
|
|
|
|
+ this.appliIDValidStartDate = policyHolderInfo.getIdentifyValidDate();
|
|
|
|
|
|
|
|
this.insuredIdentifyType = insuredPersonInfo.getIdentifyType();
|
|
this.insuredIdentifyType = insuredPersonInfo.getIdentifyType();
|
|
|
this.insuredIdentifyNumber = insuredPersonInfo.getIdentifyNumber();
|
|
this.insuredIdentifyNumber = insuredPersonInfo.getIdentifyNumber();
|
|
|
this.insuredCName = insuredPersonInfo.getName();
|
|
this.insuredCName = insuredPersonInfo.getName();
|
|
|
- this.insuredInsuredNature = insuredPersonInfo.getPersonType();
|
|
|
|
|
|
|
+ this.insuredInsuredNature = "3";
|
|
|
this.insuredName = insuredPersonInfo.getName();
|
|
this.insuredName = insuredPersonInfo.getName();
|
|
|
this.insuredUnitPhone = insuredPersonInfo.getMobile();
|
|
this.insuredUnitPhone = insuredPersonInfo.getMobile();
|
|
|
this.insuredLinkerName = insuredPersonInfo.getName();
|
|
this.insuredLinkerName = insuredPersonInfo.getName();
|
|
@@ -1856,7 +1902,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
private List<PrptitemkindListDTO> prptitemkindList;
|
|
|
|
|
|
|
|
@JsonProperty("prptengageList")
|
|
@JsonProperty("prptengageList")
|
|
|
- private List<?> prptengageList;
|
|
|
|
|
|
|
+ private List<PrptengageListDTO> prptengageList;
|
|
|
|
|
|
|
|
@JsonProperty("prpDclause")
|
|
@JsonProperty("prpDclause")
|
|
|
private List<?> prpDclause;
|
|
private List<?> prpDclause;
|
|
@@ -2375,7 +2421,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.blPrpTRealNameVerification = new ArrayList<>();
|
|
this.blPrpTRealNameVerification = new ArrayList<>();
|
|
|
this.prpTLastCarShipTax = new PrpTLastCarShipTaxDTO();
|
|
this.prpTLastCarShipTax = new PrpTLastCarShipTaxDTO();
|
|
|
this.duplicateInsuranceItemsSchema = new DuplicateInsuranceItemsSchemaDTO();
|
|
this.duplicateInsuranceItemsSchema = new DuplicateInsuranceItemsSchemaDTO();
|
|
|
- this.image = new ImageDTO();
|
|
|
|
|
|
|
+ this.image = new ImageDTO("data:image/png;base64,");
|
|
|
this.inputRisk = 1;
|
|
this.inputRisk = 1;
|
|
|
this.inputRisk0507 = 1;
|
|
this.inputRisk0507 = 1;
|
|
|
this.inputRisk0507t1 = 0;
|
|
this.inputRisk0507t1 = 0;
|
|
@@ -2726,7 +2772,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
|
|
|
|
|
this.calLateFeeFlag = "";
|
|
this.calLateFeeFlag = "";
|
|
|
this.calPayBalanceFeeFlag = "";
|
|
this.calPayBalanceFeeFlag = "";
|
|
|
- this.extendChar2 = "";
|
|
|
|
|
|
|
+ this.extendChar2 = prpTitemCar.getLicenseCategory();
|
|
|
this.lateFeeStartDate = null;
|
|
this.lateFeeStartDate = null;
|
|
|
this.hisPolicyEndDate = null;
|
|
this.hisPolicyEndDate = null;
|
|
|
this.payStartDate = null;
|
|
this.payStartDate = null;
|
|
@@ -2877,6 +2923,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
public static class DuplicateInsuranceItemsSchemaDTO {
|
|
public static class DuplicateInsuranceItemsSchemaDTO {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class ImageDTO {
|
|
public static class ImageDTO {
|
|
@@ -2884,28 +2931,6 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
private String changingThisBreaksApplicationSecurity;
|
|
private String changingThisBreaksApplicationSecurity;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class PrptengageListDTO {
|
|
|
|
|
- @JsonProperty("serialNo")
|
|
|
|
|
- private Integer serialNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("clauseCode")
|
|
|
|
|
- private String clauseCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("clauses")
|
|
|
|
|
- private String clauses;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("clausesContext")
|
|
|
|
|
- private String clausesContext;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("total")
|
|
|
|
|
- private Integer total;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("flag")
|
|
|
|
|
- private String flag;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
@@ -3125,15 +3150,15 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
private Integer endMinute;
|
|
private Integer endMinute;
|
|
|
|
|
|
|
|
public PrpTmainDTO(RiskInfoVo biRiskInfoVo, String today) {
|
|
public PrpTmainDTO(RiskInfoVo biRiskInfoVo, String today) {
|
|
|
- LocalDateTime startDate = TimeProcessing.parseDateTime(biRiskInfoVo.getStartDate());
|
|
|
|
|
- this.startDate = startDate.getYear() + "-" + startDate.getMonthValue() + "-" + startDate.getDayOfMonth();
|
|
|
|
|
- this.startHour = startDate.getHour();
|
|
|
|
|
- this.startMinute = startDate.getMinute();
|
|
|
|
|
|
|
+ String startDate = TimeProcessing.dateTimeToDate(biRiskInfoVo.getStartDate());
|
|
|
|
|
+ this.startDate = startDate;
|
|
|
|
|
+ this.startHour = 0;
|
|
|
|
|
+ this.startMinute = 0;
|
|
|
|
|
|
|
|
- LocalDateTime endDate = TimeProcessing.parseDateTime(biRiskInfoVo.getStartDate());
|
|
|
|
|
- this.endDate = endDate.getYear() + "-" + endDate.getMonthValue() + "-" + endDate.getDayOfMonth();
|
|
|
|
|
- this.endHour = endDate.getHour();
|
|
|
|
|
- this.endMinute = endDate.getMinute();
|
|
|
|
|
|
|
+ String endDate = TimeProcessing.dateTimeToDate(biRiskInfoVo.getEndDate());
|
|
|
|
|
+ this.endDate = endDate;
|
|
|
|
|
+ this.endHour = 24;
|
|
|
|
|
+ this.endMinute = 0;
|
|
|
|
|
|
|
|
this.period0530 = 30;
|
|
this.period0530 = 30;
|
|
|
this.immeValidStartDate = "";
|
|
this.immeValidStartDate = "";
|
|
@@ -3322,10 +3347,14 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
|
|
|
|
|
|
|
|
|
|
public PrptitemkindListDTO(KindInfoVo kindInfoVo, PrpTmainDTO prpTmain) {
|
|
public PrptitemkindListDTO(KindInfoVo kindInfoVo, PrpTmainDTO prpTmain) {
|
|
|
|
|
+ InsuranceItem insuranceItem = InsuranceMap.INSURANCE_MAP.get(kindInfoVo.getKindCode());
|
|
|
|
|
+ if (ObjectUtils.isEmpty(insuranceItem)) {
|
|
|
|
|
+ throw new SystemException("未知险种");
|
|
|
|
|
+ }
|
|
|
this.checked = 1;
|
|
this.checked = 1;
|
|
|
this.kindCode = kindInfoVo.getKindCode();
|
|
this.kindCode = kindInfoVo.getKindCode();
|
|
|
this.kindName = kindInfoVo.getKindName();
|
|
this.kindName = kindInfoVo.getKindName();
|
|
|
- this.itemKindNo = "";
|
|
|
|
|
|
|
+ this.itemKindNo = insuranceItem.getItemKindNo();
|
|
|
this.shortRateFlag = "2";
|
|
this.shortRateFlag = "2";
|
|
|
this.shortRate = "100.0000";
|
|
this.shortRate = "100.0000";
|
|
|
this.startDate = prpTmain.getStartDate();
|
|
this.startDate = prpTmain.getStartDate();
|
|
@@ -3339,7 +3368,7 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.basePremium = "";
|
|
this.basePremium = "";
|
|
|
this.benchMarkPremium = "";
|
|
this.benchMarkPremium = "";
|
|
|
this.standardPremuim = "";
|
|
this.standardPremuim = "";
|
|
|
- this.discount = "";
|
|
|
|
|
|
|
+ this.discount = "1";
|
|
|
this.noTaxPremium = "";
|
|
this.noTaxPremium = "";
|
|
|
this.taxFee = "";
|
|
this.taxFee = "";
|
|
|
this.taxRate = "0.06";
|
|
this.taxRate = "0.06";
|
|
@@ -3349,8 +3378,8 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
this.quantity = kindInfoVo.getQuantity();
|
|
this.quantity = kindInfoVo.getQuantity();
|
|
|
this.adjustRate = "";
|
|
this.adjustRate = "";
|
|
|
this.channelrate = "";
|
|
this.channelrate = "";
|
|
|
- this.flag = "";
|
|
|
|
|
- this.mainKindFlag = "S";
|
|
|
|
|
|
|
+ this.flag = insuranceItem.getFlag();
|
|
|
|
|
+ this.mainKindFlag = insuranceItem.getMainKindFlag();
|
|
|
this.isMedical = 1;
|
|
this.isMedical = 1;
|
|
|
this.isMental = 0;
|
|
this.isMental = 0;
|
|
|
this.proposalNo = "";
|
|
this.proposalNo = "";
|
|
@@ -3380,7 +3409,9 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
prptitemkindListDTO.setKindCode("BZ");
|
|
prptitemkindListDTO.setKindCode("BZ");
|
|
|
prptitemkindListDTO.setKindName("机动车交通事故责任强制保险");
|
|
prptitemkindListDTO.setKindName("机动车交通事故责任强制保险");
|
|
|
prptitemkindListDTO.setItemKindNo("0");
|
|
prptitemkindListDTO.setItemKindNo("0");
|
|
|
|
|
+ prptitemkindListDTO.setDiscount("1");
|
|
|
prptitemkindListDTO.setShortRateFlag("2");
|
|
prptitemkindListDTO.setShortRateFlag("2");
|
|
|
|
|
+ prptitemkindListDTO.setRiskCode("0507");
|
|
|
prptitemkindListDTO.setShortRate("100.0000");
|
|
prptitemkindListDTO.setShortRate("100.0000");
|
|
|
prptitemkindListDTO.setStartDate(prpTmain.getStartDate());
|
|
prptitemkindListDTO.setStartDate(prpTmain.getStartDate());
|
|
|
prptitemkindListDTO.setStartHour(prpTmain.getStartHour());
|
|
prptitemkindListDTO.setStartHour(prpTmain.getStartHour());
|
|
@@ -3399,7 +3430,8 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
prptitemkindListDTO.setNoTaxPremium("0.0");
|
|
prptitemkindListDTO.setNoTaxPremium("0.0");
|
|
|
prptitemkindListDTO.setTaxFee("0.0");
|
|
prptitemkindListDTO.setTaxFee("0.0");
|
|
|
prptitemkindListDTO.setTaxRate("0.06");
|
|
prptitemkindListDTO.setTaxRate("0.06");
|
|
|
- prptitemkindListDTO.setFlag("2 03");
|
|
|
|
|
|
|
+ prptitemkindListDTO.setFlag(" 2 03");
|
|
|
|
|
+ prptitemkindListDTO.setCurrency("CNY");
|
|
|
return List.of(prptitemkindListDTO);
|
|
return List.of(prptitemkindListDTO);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3437,416 +3469,6 @@ public class GuoRenCrawlerCalculationPremiumRequest {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @NoArgsConstructor
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class CiInsureDemandDTO {
|
|
|
|
|
- @JsonProperty("demandNo")
|
|
|
|
|
- private String demandNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("errorCode")
|
|
|
|
|
- private String errorCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("checkCode")
|
|
|
|
|
- private String checkCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("ownerMessage")
|
|
|
|
|
- private String ownerMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("commissionRateUpper")
|
|
|
|
|
- private String commissionRateUpper;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("companyCommissionRateUpper")
|
|
|
|
|
- private String companyCommissionRateUpper;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("claimEffectReason")
|
|
|
|
|
- private String claimEffectReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("newvehicleEffectReason")
|
|
|
|
|
- private String newvehicleEffectReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("produceReffectReason")
|
|
|
|
|
- private String produceReffectReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("busiLastYearEndDat")
|
|
|
|
|
- private String busiLastYearEndDat;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("transferFlag")
|
|
|
|
|
- private String transferFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("highRiskFlag")
|
|
|
|
|
- private String highRiskFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("effectReason")
|
|
|
|
|
- private String effectReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastyearCompanyId")
|
|
|
|
|
- private String lastyearCompanyId;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("licensePlateType")
|
|
|
|
|
- private String licensePlateType;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("color")
|
|
|
|
|
- private String color;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("vehicleOwnerName")
|
|
|
|
|
- private String vehicleOwnerName;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("displacement")
|
|
|
|
|
- private String displacement;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("channelType")
|
|
|
|
|
- private String channelType;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("salePrice")
|
|
|
|
|
- private String salePrice;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("motorTypeCode")
|
|
|
|
|
- private String motorTypeCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("contractNo")
|
|
|
|
|
- private String contractNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("contractValidDate")
|
|
|
|
|
- private String contractValidDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("contractExpireDate")
|
|
|
|
|
- private String contractExpireDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("pmVehicleMessage")
|
|
|
|
|
- private String pmVehicleMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("useNatureMessage")
|
|
|
|
|
- private String useNatureMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("chgOwnerMessage")
|
|
|
|
|
- private String chgOwnerMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("scoreCode")
|
|
|
|
|
- private String scoreCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("score")
|
|
|
|
|
- private String score;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("updateTime")
|
|
|
|
|
- private String updateTime;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("insureYears")
|
|
|
|
|
- private String insureYears;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("claimTimes")
|
|
|
|
|
- private String claimTimes;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("claimAdjustLevel")
|
|
|
|
|
- private String claimAdjustLevel;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("newVehicleFlag")
|
|
|
|
|
- private String newVehicleFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("insurerArea")
|
|
|
|
|
- private String insurerArea;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("busiInsurerArea")
|
|
|
|
|
- private String busiInsurerArea;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("biDemandNo")
|
|
|
|
|
- private String biDemandNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("unmatchVehicleframeTypeMessage")
|
|
|
|
|
- private String unmatchVehicleframeTypeMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("updatetimeSH")
|
|
|
|
|
- private String updatetimeSH;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("ratingLevel")
|
|
|
|
|
- private String ratingLevel;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("exhaustScale")
|
|
|
|
|
- private String exhaustScale;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("operatorCode")
|
|
|
|
|
- private String operatorCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("startDate")
|
|
|
|
|
- private String startDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("endDate")
|
|
|
|
|
- private String endDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("policyNo")
|
|
|
|
|
- private String policyNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("modelCode")
|
|
|
|
|
- private String modelCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastYearEndDate")
|
|
|
|
|
- private String lastYearEndDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("billDate")
|
|
|
|
|
- private String billDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("reinsureFlag")
|
|
|
|
|
- private String reinsureFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastBillDate")
|
|
|
|
|
- private String lastBillDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("rateFloatFlag")
|
|
|
|
|
- private String rateFloatFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("peccancyAdjustReason")
|
|
|
|
|
- private String peccancyAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("claimAdjustReason")
|
|
|
|
|
- private String claimAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("driverRateReason")
|
|
|
|
|
- private String driverRateReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("districtRateReason")
|
|
|
|
|
- private String districtRateReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("safeAdjust")
|
|
|
|
|
- private String safeAdjust;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("nonclaimAdjust")
|
|
|
|
|
- private String nonclaimAdjust;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("loyaltyAdjust")
|
|
|
|
|
- private String loyaltyAdjust;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("useTypeSource")
|
|
|
|
|
- private String useTypeSource;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("queryPastDate")
|
|
|
|
|
- private String queryPastDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("transferDate")
|
|
|
|
|
- private String transferDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("loyaltyAdjustReason")
|
|
|
|
|
- private String loyaltyAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("busiLastYearEndDate")
|
|
|
|
|
- private String busiLastYearEndDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("busiAdjustStart")
|
|
|
|
|
- private String busiAdjustStart;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("busiAdjustEnd")
|
|
|
|
|
- private String busiAdjustEnd;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("certificateDate")
|
|
|
|
|
- private String certificateDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("reCoverMsg")
|
|
|
|
|
- private String reCoverMsg;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("policyCoeff")
|
|
|
|
|
- private String policyCoeff;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("noLoyaltyAdjustReason")
|
|
|
|
|
- private String noLoyaltyAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastPolicyNo")
|
|
|
|
|
- private String lastPolicyNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("ip")
|
|
|
|
|
- private String ip;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("usbKey")
|
|
|
|
|
- private String usbKey;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("peccancyStartDate")
|
|
|
|
|
- private String peccancyStartDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("peccancyEndDate")
|
|
|
|
|
- private String peccancyEndDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("kindAdjustValue")
|
|
|
|
|
- private String kindAdjustValue;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("kindAdjustReason")
|
|
|
|
|
- private String kindAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("noKindAdjustReason")
|
|
|
|
|
- private String noKindAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("noPeccancyReason")
|
|
|
|
|
- private String noPeccancyReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastBusinessNature")
|
|
|
|
|
- private String lastBusinessNature;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("question")
|
|
|
|
|
- private String question;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("fundRate")
|
|
|
|
|
- private String fundRate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("fundAmount")
|
|
|
|
|
- private String fundAmount;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("proposalNo")
|
|
|
|
|
- private String proposalNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("comCode")
|
|
|
|
|
- private String comCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("noClaimAdjustReason")
|
|
|
|
|
- private String noClaimAdjustReason;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("flag")
|
|
|
|
|
- private String flag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("searchSequenceNo")
|
|
|
|
|
- private String searchSequenceNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("dataSourceCode")
|
|
|
|
|
- private String dataSourceCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("completeKerbMass")
|
|
|
|
|
- private String completeKerbMass;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("frameNo")
|
|
|
|
|
- private String frameNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("riskCode")
|
|
|
|
|
- private String riskCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("makeDate")
|
|
|
|
|
- private String makeDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("amount")
|
|
|
|
|
- private String amount;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("useNatureCode")
|
|
|
|
|
- private String useNatureCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("carKindCode")
|
|
|
|
|
- private String carKindCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("enrollDate")
|
|
|
|
|
- private String enrollDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("seatCount")
|
|
|
|
|
- private String seatCount;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("tonCount")
|
|
|
|
|
- private String tonCount;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("vehicleBrand")
|
|
|
|
|
- private String vehicleBrand;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("licenseType")
|
|
|
|
|
- private String licenseType;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("basePremium")
|
|
|
|
|
- private String basePremium;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("premium")
|
|
|
|
|
- private String premium;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("brandName")
|
|
|
|
|
- private String brandName;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("licenseColorCode")
|
|
|
|
|
- private String licenseColorCode;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("fuelType")
|
|
|
|
|
- private String fuelType;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("restricFlag")
|
|
|
|
|
- private String restricFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("remark")
|
|
|
|
|
- private String remark;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("errorMessage")
|
|
|
|
|
- private String errorMessage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("errorMessageGo")
|
|
|
|
|
- private String errorMessageGo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("validCheckDate")
|
|
|
|
|
- private String validCheckDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("manufacturerName")
|
|
|
|
|
- private String manufacturerName;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("brandCName")
|
|
|
|
|
- private String brandCName;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("checkDate")
|
|
|
|
|
- private String checkDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("endValidDate")
|
|
|
|
|
- private String endValidDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("carStatus")
|
|
|
|
|
- private String carStatus;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("haulage")
|
|
|
|
|
- private String haulage;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("benchmarkPremium")
|
|
|
|
|
- private String benchmarkPremium;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("peccancyCoeff")
|
|
|
|
|
- private String peccancyCoeff;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("claimCoeff")
|
|
|
|
|
- private String claimCoeff;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("driverCoeff")
|
|
|
|
|
- private String driverCoeff;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("districtCoeff")
|
|
|
|
|
- private String districtCoeff;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("commissionRate")
|
|
|
|
|
- private String commissionRate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("demandTime")
|
|
|
|
|
- private String demandTime;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("proconfirmSequenceNo")
|
|
|
|
|
- private String proconfirmSequenceNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("proconfirmStartDate")
|
|
|
|
|
- private String proconfirmStartDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("proconfirmEndDate")
|
|
|
|
|
- private String proconfirmEndDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("preferentialPremium")
|
|
|
|
|
- private String preferentialPremium;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("preferentialFormula")
|
|
|
|
|
- private String preferentialFormula;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("preferentialDay")
|
|
|
|
|
- private String preferentialDay;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("lastYearStartDate")
|
|
|
|
|
- private String lastYearStartDate;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("engineNo")
|
|
|
|
|
- private String engineNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("licenseNo")
|
|
|
|
|
- private String licenseNo;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("renewalFlag")
|
|
|
|
|
- private String renewalFlag;
|
|
|
|
|
-
|
|
|
|
|
- @JsonProperty("carOwner")
|
|
|
|
|
- private String carOwner;
|
|
|
|
|
-
|
|
|
|
|
- public CiInsureDemandDTO(String demandNo, String checkCode) {
|
|
|
|
|
- this.demandNo = demandNo;
|
|
|
|
|
- this.checkCode = checkCode;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|