|
|
@@ -1,6 +1,7 @@
|
|
|
package com.jzg.quotation.zhongmei.crawler.entity.Request;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.jzg.commons.constants.InsuranceRisk;
|
|
|
import com.jzg.commons.entity.quote.vo.*;
|
|
|
import com.jzg.commons.constants.quote.enums.quote.PropertyCode;
|
|
|
import com.jzg.commons.entity.quote.vo.QuoteVo;
|
|
|
@@ -18,15 +19,11 @@ import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
|
|
|
import java.io.Serial;
|
|
|
import java.io.Serializable;
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Calendar;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* @description: 中煤财险 报价请求 入参
|
|
|
@@ -65,7 +62,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("imageSrcxszzm")
|
|
|
private String imageSrcxszzm;
|
|
|
|
|
|
- @JsonProperty("imageSrcxszzm")
|
|
|
+ @JsonProperty("imageSrcxszName")
|
|
|
private String imageSrcxszName;
|
|
|
|
|
|
@JsonProperty("businessMain")
|
|
|
@@ -97,8 +94,12 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
String date = DateUtil.getDateFormat(new Date(), DateUtil.FULL_TIME_SPLIT_PATTERN);
|
|
|
ContractDTO ciContract = buildCiContract(quoteVo, date);
|
|
|
ContractDTO biContract = buildBiContract(quoteVo, date);
|
|
|
- contracts.add(ciContract);
|
|
|
- contracts.add(biContract);
|
|
|
+ if(Objects.nonNull(ciContract)){
|
|
|
+ contracts.add(ciContract);
|
|
|
+ }
|
|
|
+ if(Objects.nonNull(biContract)){
|
|
|
+ contracts.add(biContract);
|
|
|
+ }
|
|
|
return contracts;
|
|
|
}
|
|
|
|
|
|
@@ -110,13 +111,14 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
*/
|
|
|
public ContractDTO buildCiContract(QuoteVo quoteVo, String productionDate) {
|
|
|
ContractDTO contract = new ContractDTO();
|
|
|
-
|
|
|
RiskInfoVo ciRiskInfoVo = quoteVo.getCiRiskInfoVo();
|
|
|
- ContractDTO.ContractMainDTO contractMain = new ContractDTO.ContractMainDTO(ciRiskInfoVo, productionDate);
|
|
|
+ if(Objects.isNull(ciRiskInfoVo)){return null;}
|
|
|
+ ContractDTO.ContractMainDTO contractMain = new ContractDTO.ContractMainDTO(quoteVo,ciRiskInfoVo, productionDate);
|
|
|
contract.setContractMain(contractMain);
|
|
|
-
|
|
|
+ contract.setCoinsInfoBean(new ArrayList<>());
|
|
|
+ contract.setEngage(new ArrayList<>());
|
|
|
VehicleAndVesselTaxVo taxVo = quoteVo.getVehicleAndVesselTaxVo();
|
|
|
- ContractDTO.TaxDTO taxDTO = new ContractDTO.TaxDTO(taxVo);
|
|
|
+ ContractDTO.TaxDTO taxDTO = new ContractDTO.TaxDTO(taxVo,quoteVo.getOwnersInfo());
|
|
|
contract.setTax(taxDTO);
|
|
|
|
|
|
ContractDTO.CoverageDTO coverageDTO = new ContractDTO.CoverageDTO();
|
|
|
@@ -124,10 +126,22 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
coverageDTO.setExpiryDate(ciRiskInfoVo.getEndDate());
|
|
|
coverageDTO.setKindCode(ContractEnum.C_BZ.getKindCode());
|
|
|
coverageDTO.setKindName(ContractEnum.C_BZ.getKindName());
|
|
|
+ coverageDTO.setAmount("");
|
|
|
+ coverageDTO.setCommission(0);
|
|
|
+ coverageDTO.setCoverageAdjustRate("");
|
|
|
+ coverageDTO.setCoveragePremium("");
|
|
|
+ coverageDTO.setCoverageRiskPremium("");
|
|
|
+ coverageDTO.setKindNo(0);
|
|
|
+ coverageDTO.setModeCode("");
|
|
|
+ coverageDTO.setModeName("");
|
|
|
+ coverageDTO.setOperateType("");
|
|
|
+ coverageDTO.setQuantity(0);
|
|
|
+ coverageDTO.setUnitAmount(0);
|
|
|
List<ContractDTO.CoverageDTO> coverageDTOList = new ArrayList<>();
|
|
|
coverageDTOList.add(coverageDTO);
|
|
|
contract.setCoverage(coverageDTOList);
|
|
|
-
|
|
|
+ ContractDTO.PlantFormMessageBeanDTO plantFormMessageBeanDTO = new ContractDTO.PlantFormMessageBeanDTO();
|
|
|
+ contract.setPlantFormMessageBean(plantFormMessageBeanDTO);
|
|
|
return contract;
|
|
|
}
|
|
|
|
|
|
@@ -140,7 +154,8 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
public ContractDTO buildBiContract(QuoteVo quoteVo, String productionDate) {
|
|
|
ContractDTO contract = new ContractDTO();
|
|
|
RiskInfoVo biRiskInfoVo = quoteVo.getBiRiskInfoVo();
|
|
|
- ContractDTO.ContractMainDTO contractMain = new ContractDTO.ContractMainDTO(biRiskInfoVo, productionDate);
|
|
|
+ if(Objects.isNull(biRiskInfoVo)){return null;}
|
|
|
+ ContractDTO.ContractMainDTO contractMain = new ContractDTO.ContractMainDTO(quoteVo,biRiskInfoVo, productionDate);
|
|
|
contract.setContractMain(contractMain);
|
|
|
|
|
|
ContractDTO.ApmServiceFeeBeanDTO apmServiceFeeBeanDTO = new ContractDTO.ApmServiceFeeBeanDTO();
|
|
|
@@ -157,9 +172,9 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
coverageDTO.setCalculateFlag("Y");
|
|
|
coverageDTO.setOptNotDeductibleFlag(1);
|
|
|
coverageDTO.setNotDeductibleFlag(true);
|
|
|
- coverageDTO.setAmount(Double.parseDouble(kindInfoVo.getAmount()));
|
|
|
+ coverageDTO.setAmount(kindInfoVo.getAmount());
|
|
|
coverageDTO.setUnitAmount(Integer.parseInt(kindInfoVo.getUnitAmount()));
|
|
|
- coverageDTO.setQuantity(kindInfoVo.getQuantity());
|
|
|
+ coverageDTO.setQuantity(Integer.parseInt(kindInfoVo.getQuantity()));
|
|
|
coverageDTO.setValidDate(biRiskInfoVo.getStartDate());
|
|
|
coverageDTO.setExpiryDate(biRiskInfoVo.getEndDate());
|
|
|
coverageDTOList.add(coverageDTO);
|
|
|
@@ -170,9 +185,9 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
public List<CustomerDTO> buildCustomerList (QuoteVo quoteVo) {
|
|
|
List<CustomerDTO> customerDTOList = new ArrayList<>();
|
|
|
- CustomerDTO ownerDTO = transferCustomer(quoteVo.getOwnersInfo());
|
|
|
- CustomerDTO policyDTO = transferCustomer(quoteVo.getPolicyHolderInfo());
|
|
|
- CustomerDTO insuredDTO = transferCustomer(quoteVo.getInsuredPersonInfo());
|
|
|
+ CustomerDTO ownerDTO = transferCustomer(quoteVo.getOwnersInfo(), "3");
|
|
|
+ CustomerDTO policyDTO = transferCustomer(quoteVo.getPolicyHolderInfo(),"1");
|
|
|
+ CustomerDTO insuredDTO = transferCustomer(quoteVo.getInsuredPersonInfo(),"2");
|
|
|
customerDTOList.add(ownerDTO);
|
|
|
customerDTOList.add(policyDTO);
|
|
|
customerDTOList.add(insuredDTO);
|
|
|
@@ -184,35 +199,56 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
* @param customerInfoVo
|
|
|
* @return
|
|
|
*/
|
|
|
- public CustomerDTO transferCustomer (CustomerInfoVo customerInfoVo) {
|
|
|
+ public CustomerDTO transferCustomer (CustomerInfoVo customerInfoVo,String role) {
|
|
|
CustomerDTO customerDTO = new CustomerDTO();
|
|
|
CustomerDTO.ContactDTO contactDTO = new CustomerDTO.ContactDTO();
|
|
|
+ List<CustomerDTO.ContactDTO> contact = new ArrayList<>();
|
|
|
contactDTO.setAddr(customerInfoVo.getAddr());
|
|
|
contactDTO.setMobile(customerInfoVo.getMobile());
|
|
|
contactDTO.setName(customerInfoVo.getName());
|
|
|
contactDTO.setLinkName(customerInfoVo.getName());
|
|
|
contactDTO.setMobile1(customerInfoVo.getMobile());
|
|
|
- contactDTO.setRelated("01");
|
|
|
- customerDTO.getContact().add(contactDTO);
|
|
|
+ contact.add(contactDTO);
|
|
|
+ customerDTO.setContact(contact);
|
|
|
|
|
|
customerDTO.setAge(customerInfoVo.getAge());
|
|
|
+ customerDTO.setClientJobCode("86");
|
|
|
+ customerDTO.setClientJobName("旅馆服务员");
|
|
|
customerDTO.setContactAddr_app(customerInfoVo.getAddr());
|
|
|
- customerDTO.setBirthday(customerInfoVo.getBirthday());
|
|
|
+ customerDTO.setCountryCode("CN");
|
|
|
+ customerDTO.setCountryName("中华人民共和国");
|
|
|
+ customerDTO.setCustomerDeal("1");
|
|
|
+ customerDTO.setInvocieType("02");
|
|
|
+ customerDTO.setBirthday(customerInfoVo.getBirthday() + " 00:00:00");
|
|
|
customerDTO.setSex(customerInfoVo.getGender());
|
|
|
+ customerDTO.setType("1");
|
|
|
+ customerDTO.setStatus("I");
|
|
|
+ customerDTO.setCarInsuredRelation("9");
|
|
|
+ customerDTO.setMoneyLaunderingInd("651003");
|
|
|
+ customerDTO.setIsClaimRights("1");
|
|
|
customerDTO.setPayMobile(customerInfoVo.getMobile());
|
|
|
+ customerDTO.setJobRisk("1");
|
|
|
+ customerDTO.setRole(role);
|
|
|
+ customerDTO.setContacttype("99");
|
|
|
+ customerDTO.setPayIdentifyType("01");
|
|
|
+ customerDTO.setDriveYear(0);
|
|
|
+ customerDTO.setLinkerMobile(customerInfoVo.getMobile());
|
|
|
+ customerDTO.setOcrNation("汉");
|
|
|
if (PropertyCode.PROPERTY_CODE_1.getCode().equals(customerInfoVo.getProperty())) {//个人
|
|
|
+ customerDTO.setRealName(customerInfoVo.getName());
|
|
|
customerDTO.setName(customerInfoVo.getName());
|
|
|
customerDTO.setIdentifyType("01");
|
|
|
customerDTO.setIdentifyNumber(customerInfoVo.getIdentifyNumber());
|
|
|
customerDTO.setPayIdentifyNumber(customerInfoVo.getIdentifyNumber());
|
|
|
- customerDTO.setIdentifyValidDate(customerInfoVo.getIdentifyValidDate());
|
|
|
- customerDTO.setIdentifyValidEndDate(customerInfoVo.getIdentifyValidEndDate());
|
|
|
+ customerDTO.setIdentifyValidDate(customerInfoVo.getIdentifyValidDate() + " 00:00:00");
|
|
|
+ customerDTO.setIdentifyValidEndDate(customerInfoVo.getIdentifyValidEndDate() + " 23:59:59");
|
|
|
} else {//法人
|
|
|
customerDTO.setIdentifyType("02");
|
|
|
customerDTO.setIdentifyNumber(customerInfoVo.getLeaderIdentifyNumber());
|
|
|
customerDTO.setName(customerInfoVo.getLegalPerson());
|
|
|
- customerDTO.setPayIdentifyNumber(customerInfoVo.getLeaderIdentifyNumber());
|
|
|
- customerDTO.setIdentifyValidEndDate(customerInfoVo.getLeaderOtherEffectiveDate());
|
|
|
+ customerDTO.setRealName(customerInfoVo.getLegalPerson());
|
|
|
+ customerDTO.setPayIdentifyNumber(customerInfoVo.getLeaderIdentifyNumber() + " 00:00:00");
|
|
|
+ customerDTO.setIdentifyValidEndDate(customerInfoVo.getLeaderOtherEffectiveDate() + " 23:59:59");
|
|
|
}
|
|
|
|
|
|
return customerDTO;
|
|
|
@@ -235,11 +271,13 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
public BusinessDataDTO(ZmCrawlerConfigureParameters parameters, QuoteVo quoteVo,
|
|
|
SaleInfoDTO saleInfoDTO, ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO,
|
|
|
ZmCrawlerActualValueResponse actualValueResponse, String userCode) {
|
|
|
-// this.imageSrcxszzm = "";
|
|
|
-// this.imageSrcxszName = "";
|
|
|
+ this.imageSrcxszzm = "";
|
|
|
+ this.imageSrcxszName = "";
|
|
|
this.businessMain = new BusinessMainDTO(parameters, userCode,quoteVo.getCarInfoVo());
|
|
|
- this.insuredObject = new InsuredObjectDTO(fullCarDataDTO, quoteVo, actualValueResponse);
|
|
|
+ InsuredObjectDTO insuredObjectDTO = new InsuredObjectDTO(fullCarDataDTO, quoteVo, actualValueResponse);
|
|
|
+ this.insuredObject = insuredObjectDTO;
|
|
|
this.antiMoney = new AntiMoneyDTO();
|
|
|
+
|
|
|
this.saleInfo = saleInfoDTO;
|
|
|
//处理险种信息
|
|
|
this.contract = buildContractList(quoteVo);
|
|
|
@@ -283,6 +321,9 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("operatorCode")
|
|
|
private String operatorCode;
|
|
|
|
|
|
+ @JsonProperty("contactRemark")
|
|
|
+ private String contactRemark;
|
|
|
+
|
|
|
public BusinessMainDTO(ZmCrawlerConfigureParameters parameters, String userCode, CarInfoVo carInfoVo) {
|
|
|
this.appointAreaCode = "";
|
|
|
this.businessType = "T";
|
|
|
@@ -291,16 +332,17 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
if(carInfoVo.getEnergyTypeCode().equals("0")){
|
|
|
this.planCode = "1379";
|
|
|
}else{
|
|
|
- this.planCode= "1382";
|
|
|
+ this.planCode = "1382";
|
|
|
}
|
|
|
|
|
|
// 获取前五分钟的时分秒
|
|
|
LocalDateTime now = LocalDateTime.now(); // 当前时间
|
|
|
LocalDateTime fiveMinutesAgo = now.minusMinutes(5); // 往前减 5 分钟
|
|
|
this.recordTime = fiveMinutesAgo.format(TimeProcessing.DATE_TIME_FORMATTER);
|
|
|
- this.oneForOneFlag = "1";
|
|
|
+ this.oneForOneFlag = "0";
|
|
|
this.calculateTime = now.format(TimeProcessing.DATE_TIME_FORMATTER);
|
|
|
this.operatorCode = userCode;
|
|
|
+ this.contactRemark = "1";
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@@ -315,7 +357,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("platformCar")
|
|
|
private PlatformCarDTO platformCar;
|
|
|
|
|
|
- @JsonProperty("platformCar")
|
|
|
+ @JsonProperty("policyCar")
|
|
|
private PolicyCarDTO policyCar;
|
|
|
|
|
|
@JsonProperty("simpleStadarCar")
|
|
|
@@ -327,37 +369,38 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("charging")
|
|
|
private List<String> charging;
|
|
|
|
|
|
+ @JsonProperty("violationBeanlist")
|
|
|
+ private List<String> violationBeanlist;
|
|
|
+
|
|
|
@JsonProperty("modelDetails")
|
|
|
private ModelDetailsDTO modelDetails;
|
|
|
|
|
|
public InsuredObjectDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO, QuoteVo quoteVo, ZmCrawlerActualValueResponse actualValueResponse) {
|
|
|
- SimpleStadarCarDTO stadarCarDTO = new SimpleStadarCarDTO();
|
|
|
- BeanUtils.copyProperties(fullCarDataDTO, stadarCarDTO);
|
|
|
- stadarCarDTO.setBrand(fullCarDataDTO.getFullCarData().getModelName());
|
|
|
- stadarCarDTO.setDisplacement((double)fullCarDataDTO.getFullCarData().getDisplacement()/1000);
|
|
|
- stadarCarDTO.setPrintBrandName(fullCarDataDTO.getFullCarData().getModelName());
|
|
|
- stadarCarDTO.setPurchasePriceCopy(fullCarDataDTO.getFullCarData().getPurchasePrice());
|
|
|
+ SimpleStadarCarDTO stadarCarDTO = new SimpleStadarCarDTO(fullCarDataDTO.getFullCarData());
|
|
|
this.simpleStadarCar = stadarCarDTO;
|
|
|
|
|
|
PlatformCarDTO platformCarDTO = new PlatformCarDTO();
|
|
|
platformCarDTO.setDeptCode(fullCarDataDTO.getPlatFormCar().getDeptCode());
|
|
|
- if(platformCarDTO.deptCode.equals("0")){
|
|
|
- platformCarDTO.setDeptName("国产");
|
|
|
- }else if(platformCarDTO.deptCode.equals("1")){
|
|
|
- platformCarDTO.setDeptName("合资");
|
|
|
- }else{
|
|
|
- platformCarDTO.setDeptName("进口");
|
|
|
- }
|
|
|
- platformCarDTO.setCarName(fullCarDataDTO.getFullCarData().getLocalModelCode());
|
|
|
+// if(platformCarDTO.deptCode.equals("0")){
|
|
|
+// platformCarDTO.setDeptName("国产");
|
|
|
+// }else if(platformCarDTO.deptCode.equals("1")){
|
|
|
+// platformCarDTO.setDeptName("合资");
|
|
|
+// }else{
|
|
|
+// platformCarDTO.setDeptName("进口");
|
|
|
+// }
|
|
|
+ platformCarDTO.setBasicRateCode("");
|
|
|
+ platformCarDTO.setPlatSeriesGroup("E");
|
|
|
+// platformCarDTO.setCarName(fullCarDataDTO.getFullCarData().getLocalModelCode());
|
|
|
this.platformCar = platformCarDTO;
|
|
|
|
|
|
CarInfoVo carInfoVo = quoteVo.getCarInfoVo();
|
|
|
- this.policyCar = new PolicyCarDTO(carInfoVo, actualValueResponse);
|
|
|
+ PolicyCarDTO policyCar = new PolicyCarDTO(carInfoVo, actualValueResponse,fullCarDataDTO.getFullCarData());
|
|
|
+ this.policyCar = policyCar;
|
|
|
|
|
|
- this.modelDetails = new ModelDetailsDTO(fullCarDataDTO);
|
|
|
-
|
|
|
- //specializedDevice charging 稍后补充
|
|
|
+ ModelDetailsDTO modelDetails = new ModelDetailsDTO();
|
|
|
+ this.modelDetails = modelDetails;
|
|
|
|
|
|
+ this.violationBeanlist = new ArrayList<>();
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -376,6 +419,15 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
@JsonProperty("carName")
|
|
|
private String carName;
|
|
|
+
|
|
|
+ @JsonProperty("basicRateCode")
|
|
|
+ private String basicRateCode;
|
|
|
+
|
|
|
+ @JsonProperty("platSeriesGroup")
|
|
|
+ private String platSeriesGroup;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -417,6 +469,15 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("personLiable")
|
|
|
private String personLiable;
|
|
|
|
|
|
+ @JsonProperty("attachNature")
|
|
|
+ private String attachNature;
|
|
|
+
|
|
|
+ @JsonProperty("averageMileage")
|
|
|
+ private String averageMileage;
|
|
|
+
|
|
|
+ @JsonProperty("engineModel")
|
|
|
+ private String engineModel;
|
|
|
+
|
|
|
@JsonProperty("contrastFlag")
|
|
|
private Boolean contrastFlag;
|
|
|
|
|
|
@@ -528,26 +589,22 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("contrastprice")
|
|
|
private Integer contrastprice;
|
|
|
|
|
|
- public PolicyCarDTO (CarInfoVo carInfoVo, ZmCrawlerActualValueResponse actualValueResponse) {
|
|
|
- this.checkFlag = "0";
|
|
|
- this.hKFlag = false;
|
|
|
- this.HKPlateNo = "";
|
|
|
+ public PolicyCarDTO (CarInfoVo carInfoVo, ZmCrawlerActualValueResponse actualValueResponse, ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData) {
|
|
|
this.vIN = carInfoVo.getVinNo();
|
|
|
this.actualValue = actualValueResponse.getActualValue();
|
|
|
- this.carCheckReason = "";
|
|
|
+ this.aheadRule = "1";
|
|
|
+ this.attachNature = "04";
|
|
|
+ this.averageMileage = "";
|
|
|
this.carCheckStatus = "2";
|
|
|
this.carCheckTime = "";
|
|
|
this.carChecker = "";
|
|
|
- this.repairTime = "";
|
|
|
- this.personLiable = "";
|
|
|
- this.contrastFlag = false;
|
|
|
+ this.carQueryCheckCode = "";
|
|
|
+ this.carUseType = "01";
|
|
|
+ this.chgOwnerFlag = "0";
|
|
|
this.engine = carInfoVo.getEngineNo();
|
|
|
- this.fleetNo = "";
|
|
|
this.issueDate = carInfoVo.getIssueDate() + " 00:00:00";
|
|
|
- this.loanVehicleFlag = carInfoVo.isLoanStatus();
|
|
|
- this.model = "";
|
|
|
- this.carUseType = carInfoVo.getVehicleUseCode();
|
|
|
- this.motorType = "";
|
|
|
+ this.motorMainType = carInfoVo.getCarKindCode();
|
|
|
+ this.motorSubType = "101";
|
|
|
if(carInfoVo.getCarKindCode().equals("100")){
|
|
|
this.motorTypeCode = "11";
|
|
|
}else{
|
|
|
@@ -555,32 +612,19 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
}
|
|
|
this.motorUsageTypeCode = carInfoVo.getCarNatureCode();
|
|
|
this.newCarSign = false;
|
|
|
- this.noDamageYears = "";
|
|
|
- this.noLicenseFlag = false;
|
|
|
+ this.noDamageYears = "0";
|
|
|
+ this.personLiable = "";
|
|
|
+ this.plateColorCode = carInfoVo.getLicenseColorCode();
|
|
|
this.plateNo = carInfoVo.getLicenseNo();
|
|
|
this.plateType = "02";
|
|
|
-// this.pmQueryNo = carInfoVo.getCarTypeCode();
|
|
|
this.registerDate = carInfoVo.getRegisterDate() + " 00:00:00";
|
|
|
-// this.damagedFactorGrade = "";
|
|
|
-// this.runArea = "";
|
|
|
+ this.repairTime = "";
|
|
|
this.runMiles = 0;
|
|
|
this.taxInclued = false;
|
|
|
- this.transferDate = carInfoVo.getTransferDate();
|
|
|
+ this.transferDate = "";
|
|
|
this.useYears = actualValueResponse.getUseYears();
|
|
|
this.vehicleType = carInfoVo.getCarTypeCode();
|
|
|
- this.chgOwnerFlag = "0";
|
|
|
- this.lossInsuranceModel = "01";
|
|
|
- this.nolocalCarFlag = "0";
|
|
|
- this.plateColorCode = carInfoVo.getLicenseColorCode();
|
|
|
-// this.secondhandCarFlag = "0";
|
|
|
-// this.shortPeriodReason = "0";
|
|
|
- this.carQueryCheckCode = "";
|
|
|
-// this.splitChgOwner = "0";
|
|
|
- this.aheadRule = "1";
|
|
|
- this.motorMainType = carInfoVo.getCarKindCode();
|
|
|
- this.motorSubType = "101";
|
|
|
- this.isrelief = "0";
|
|
|
- this.contrastprice = 0;
|
|
|
+ this.noLicenseFlag = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -719,6 +763,40 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
@JsonProperty("purchasePriceCopy")
|
|
|
private Integer purchasePriceCopy;
|
|
|
+
|
|
|
+ @JsonProperty("modelCode")
|
|
|
+ private String modelCode;
|
|
|
+
|
|
|
+ @JsonProperty("priceStart")
|
|
|
+ private Integer priceStart;
|
|
|
+
|
|
|
+ @JsonProperty("priceEnd")
|
|
|
+ private Integer priceEnd;
|
|
|
+
|
|
|
+ @JsonProperty("series")
|
|
|
+ private String series;
|
|
|
+
|
|
|
+ public SimpleStadarCarDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData){
|
|
|
+ this.approvedLoad = fullCarData.getApprovedLoad();
|
|
|
+ this.approvedPassengersCapacity = fullCarData.getApprovedPassengersCapacity();
|
|
|
+ this.brand = fullCarData.getModelName();
|
|
|
+ this.carType = fullCarData.getCarType();
|
|
|
+ this.displacement = fullCarData.getDisplacement() / 1000;
|
|
|
+ this.energyTypes = fullCarData.getEnergyTypes();
|
|
|
+ this.fuelType = fullCarData.getFuelType();
|
|
|
+ this.localModelCode = fullCarData.getLocalModelCode();
|
|
|
+ this.modelCode = fullCarData.getLocalModelCode();
|
|
|
+ this.newVehicleClassCode = fullCarData.getNewVehicleClassCode();
|
|
|
+ this.originalPurchasePrice = fullCarData.getOriginalPurchasePrice();
|
|
|
+ this.power = fullCarData.getPower();
|
|
|
+ this.priceEnd = 0;
|
|
|
+ this.priceStart = 0;
|
|
|
+ this.printBrandName =fullCarData.getModelName();
|
|
|
+ this.purchasePrice = fullCarData.getPurchasePrice();
|
|
|
+ this.purchasePriceCopy = fullCarData.getPurchasePrice();
|
|
|
+ this.series = fullCarData.getSeries();
|
|
|
+ this.unladenMass = fullCarData.getUnladenMass();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -737,10 +815,10 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private String modelName;
|
|
|
|
|
|
@JsonProperty("approvedLoad")
|
|
|
- private String approvedLoad;
|
|
|
+ private Integer approvedLoad;
|
|
|
|
|
|
@JsonProperty("approvedPassengersCapacity")
|
|
|
- private String approvedPassengersCapacity;
|
|
|
+ private Integer approvedPassengersCapacity;
|
|
|
|
|
|
@JsonProperty("brand")
|
|
|
private String brand;
|
|
|
@@ -806,16 +884,14 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private VehicleRiskDTO vehicleRisk;
|
|
|
|
|
|
public ModelDetailsDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO) {
|
|
|
- ModelDetailsDTO modelDetailsDTO = new ModelDetailsDTO();
|
|
|
ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData = fullCarDataDTO.getFullCarData();
|
|
|
- BeanUtils.copyProperties(fullCarData, modelDetailsDTO);
|
|
|
- modelDetailsDTO.setBrand(fullCarData.getModelName());
|
|
|
- modelDetailsDTO.setDisplacement((double)fullCarData.getDisplacement()/1000);
|
|
|
- modelDetailsDTO.setGrossMass("--");
|
|
|
- modelDetailsDTO.setDeptCode(fullCarDataDTO.getPlatFormCar().getDeptCode());
|
|
|
- modelDetailsDTO.setPlatSeriesGroup("--");
|
|
|
- modelDetailsDTO.setModelCode("--");
|
|
|
- modelDetailsDTO.setGroupName("--");
|
|
|
+ this.brand = fullCarData.getModelName();
|
|
|
+ this.displacement = fullCarData.getDisplacement()/1000;
|
|
|
+ this.grossMass = "--";
|
|
|
+ this.deptCode = fullCarDataDTO.getPlatFormCar().getDeptCode();
|
|
|
+ this.platSeriesGroup = "--";
|
|
|
+ this.modelCode = "--";
|
|
|
+ this.groupName = "--";
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -1024,8 +1100,25 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("productionDate")
|
|
|
private String productionDate;
|
|
|
|
|
|
- public ContractMainDTO (RiskInfoVo riskInfoVo, String productionDate) {
|
|
|
- this.riskCode = riskInfoVo.getRiskCode();
|
|
|
+ @JsonProperty("checkFlag")
|
|
|
+ private String checkFlag;
|
|
|
+
|
|
|
+ public ContractMainDTO (QuoteVo quoteVo, RiskInfoVo riskInfoVo, String productionDate) {
|
|
|
+
|
|
|
+ if (InsuranceRisk.TRAFFIC.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
|
+ this.riskCode = "0330";
|
|
|
+ }
|
|
|
+ if (InsuranceRisk.BUSINESS.getCode().equals(riskInfoVo.getRiskCode())) {
|
|
|
+ if(quoteVo.getCarInfoVo().getEnergyTypeCode().equals("0")){
|
|
|
+ this.riskCode = "0361";
|
|
|
+ }else{
|
|
|
+ this.riskCode = "0365";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.appointAreaCode = "";
|
|
|
+ this.contractNo = "";
|
|
|
+ this.totalAdjustRate = "";
|
|
|
+ this.totalPremium = "";
|
|
|
this.validDate = riskInfoVo.getStartDate();
|
|
|
this.expiryDate = riskInfoVo.getEndDate();
|
|
|
this.argueSolution = "1";
|
|
|
@@ -1033,6 +1126,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
this.coinsFlag = "0";
|
|
|
this.renewalFlag = false;
|
|
|
this.productionDate = productionDate;
|
|
|
+ this.checkFlag = "";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1059,6 +1153,15 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
@JsonProperty("question")
|
|
|
private String question;
|
|
|
+
|
|
|
+ public PlantFormMessageBeanDTO(){
|
|
|
+ this.answer = "";
|
|
|
+ this.expireDate = "";
|
|
|
+ this.queryDate = "";
|
|
|
+ this.platformCar = "";
|
|
|
+ this.querySequenceNo = "";
|
|
|
+ this.question = "";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -1104,7 +1207,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private Integer deductible;
|
|
|
|
|
|
@JsonProperty("commission")
|
|
|
- private String commission;
|
|
|
+ private Integer commission;
|
|
|
|
|
|
@JsonProperty("profitRate")
|
|
|
private String profitRate;
|
|
|
@@ -1119,7 +1222,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private String coveragePremium;
|
|
|
|
|
|
@JsonProperty("coverageRiskPremium")
|
|
|
- private Integer coverageRiskPremium;
|
|
|
+ private String coverageRiskPremium;
|
|
|
|
|
|
@JsonProperty("expiryDate")
|
|
|
private String expiryDate;
|
|
|
@@ -1137,7 +1240,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private String operateType;
|
|
|
|
|
|
@JsonProperty("quantity")
|
|
|
- private String quantity;
|
|
|
+ private Integer quantity;
|
|
|
|
|
|
@JsonProperty("unitAmount")
|
|
|
private Integer unitAmount;
|
|
|
@@ -1149,7 +1252,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private String nonDeductibleKindCode;
|
|
|
|
|
|
@JsonProperty("amount")
|
|
|
- private Double amount;
|
|
|
+ private String amount;
|
|
|
|
|
|
@JsonProperty("basePremium")
|
|
|
private String basePremium;
|
|
|
@@ -1183,6 +1286,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
@JsonProperty("remark1")
|
|
|
private String remark1;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Data
|
|
|
@@ -1233,7 +1337,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("taxPayerIdentificationCode")
|
|
|
private String taxPayerIdentificationCode;
|
|
|
|
|
|
- public TaxDTO (VehicleAndVesselTaxVo taxVo) {
|
|
|
+ public TaxDTO (VehicleAndVesselTaxVo taxVo, CustomerInfoVo ownersInfo) {
|
|
|
this.calculateMode = "4";
|
|
|
this.calculateMode1 = "4";
|
|
|
this.taxConditionCode = "02";
|
|
|
@@ -1241,14 +1345,20 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
int year = calendar.get(Calendar.YEAR);
|
|
|
this.lastPaidYear = year-1 + "";
|
|
|
this.paidFeeFlag = "";
|
|
|
- this.taxRegisterNumber = "";
|
|
|
+ this.taxRegisterNumber = "91140000581249866M ";
|
|
|
this.annualTaxDue = "";
|
|
|
this.sumTax = "";
|
|
|
this.sumOverdue = "";
|
|
|
- this.taxPayerName = taxVo.getTaxpayerName();
|
|
|
- this.taxPayerIdentityType = taxVo.getTaxpayerIdentifier();
|
|
|
- this.taxPayerIdentityNo = taxVo.getIdentifyNumber();
|
|
|
- this.taxConditionCode = taxVo.getIdentifyNumber();
|
|
|
+// this.taxPayerName = taxVo.getTaxpayerName();
|
|
|
+// this.taxPayerIdentityType = taxVo.getTaxpayerIdentifier();
|
|
|
+// this.taxPayerIdentityNo = taxVo.getIdentifyNumber();
|
|
|
+// this.taxConditionCode = taxVo.getIdentifyNumber();
|
|
|
+
|
|
|
+ this.taxPayerName = ownersInfo.getName();
|
|
|
+ this.taxPayerIdentityType = "01";
|
|
|
+ this.taxPayerIdentityNo = ownersInfo.getIdentifyNumber();
|
|
|
+ this.taxPayerIdentificationCode = ownersInfo.getIdentifyNumber();
|
|
|
+ this.taxSub = new ArrayList<>();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1277,6 +1387,9 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("countryName")
|
|
|
private String countryName;
|
|
|
|
|
|
+ @JsonProperty("customerDeal")
|
|
|
+ private String customerDeal;
|
|
|
+
|
|
|
@JsonProperty("identifyType")
|
|
|
private String identifyType;
|
|
|
|
|
|
@@ -1361,6 +1474,27 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("role")
|
|
|
private String role;
|
|
|
|
|
|
+ @JsonProperty("driveYear")
|
|
|
+ private Integer driveYear;
|
|
|
+
|
|
|
+ @JsonProperty("imageSrcsfzbm")
|
|
|
+ private String imageSrcsfzbm;
|
|
|
+
|
|
|
+ @JsonProperty("imageSrcsfzbmName")
|
|
|
+ private String imageSrcsfzbmName;
|
|
|
+
|
|
|
+ @JsonProperty("imageSrcsfzzm")
|
|
|
+ private String imageSrcsfzzm;
|
|
|
+
|
|
|
+ @JsonProperty("imageSrcsfzzmName")
|
|
|
+ private String imageSrcsfzzmName;
|
|
|
+
|
|
|
+ @JsonProperty("linkerMobile")
|
|
|
+ private String linkerMobile;
|
|
|
+
|
|
|
+ @JsonProperty("ocrNation")
|
|
|
+ private String ocrNation;
|
|
|
+
|
|
|
@JsonProperty("contact")
|
|
|
private List<ContactDTO> contact;
|
|
|
|