|
|
@@ -404,7 +404,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private ModelDetailsDTO modelDetails;
|
|
|
|
|
|
public InsuredObjectDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO, QuoteVo quoteVo, ZmCrawlerActualValueResponse actualValueResponse) {
|
|
|
- SimpleStadarCarDTO stadarCarDTO = new SimpleStadarCarDTO(fullCarDataDTO.getFullCarData());
|
|
|
+ SimpleStadarCarDTO stadarCarDTO = new SimpleStadarCarDTO(fullCarDataDTO.getFullCarData(),quoteVo.getCarInfoVo());
|
|
|
this.simpleStadarCar = stadarCarDTO;
|
|
|
|
|
|
PlatformCarDTO platformCarDTO = new PlatformCarDTO();
|
|
|
@@ -425,7 +425,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
PolicyCarDTO policyCar = new PolicyCarDTO(carInfoVo, actualValueResponse,fullCarDataDTO.getFullCarData());
|
|
|
this.policyCar = policyCar;
|
|
|
|
|
|
- ModelDetailsDTO modelDetails = new ModelDetailsDTO();
|
|
|
+ ModelDetailsDTO modelDetails = new ModelDetailsDTO(fullCarDataDTO);
|
|
|
this.modelDetails = modelDetails;
|
|
|
|
|
|
this.violationBeanlist = new ArrayList<>();
|
|
|
@@ -634,6 +634,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
this.carCheckTime = "";
|
|
|
this.carChecker = "";
|
|
|
this.carQueryCheckCode = "";
|
|
|
+ this.isrelief = fullCarData.getIsrelief();
|
|
|
this.carUseType = carInfoVo.getVehicleUseCode();
|
|
|
this.engine = carInfoVo.getEngineNo();
|
|
|
this.issueDate = carInfoVo.getIssueDate() + " 00:00:00";
|
|
|
@@ -823,7 +824,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("series")
|
|
|
private String series;
|
|
|
|
|
|
- public SimpleStadarCarDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData){
|
|
|
+ public SimpleStadarCarDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData,CarInfoVo carInfo){
|
|
|
this.approvedLoad = fullCarData.getApprovedLoad();
|
|
|
this.approvedPassengersCapacity = fullCarData.getApprovedPassengersCapacity();
|
|
|
this.brand = fullCarData.getModelName();
|
|
|
@@ -832,6 +833,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
this.energyTypes = fullCarData.getEnergyTypes();
|
|
|
this.fuelType = fullCarData.getFuelType();
|
|
|
this.localModelCode = fullCarData.getLocalModelCode();
|
|
|
+ this.isrelief = fullCarData.getIsrelief();
|
|
|
this.modelCode = fullCarData.getLocalModelCode();
|
|
|
this.newVehicleClassCode = fullCarData.getNewVehicleClassCode();
|
|
|
this.originalPurchasePrice = fullCarData.getOriginalPurchasePrice();
|
|
|
@@ -842,7 +844,12 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
this.purchasePrice = fullCarData.getPurchasePrice();
|
|
|
this.purchasePriceCopy = fullCarData.getPurchasePrice();
|
|
|
this.series = fullCarData.getSeries();
|
|
|
- this.unladenMass = fullCarData.getUnladenMass();
|
|
|
+ if (fullCarData.getUnladenMass() != null && !fullCarData.getUnladenMass().equals(0.00)) {
|
|
|
+ this.unladenMass = fullCarData.getUnladenMass();
|
|
|
+ } else {
|
|
|
+ this.unladenMass = Double.parseDouble(carInfo.getCompleteKerbMass())/1000;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -932,13 +939,33 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
|
|
|
public ModelDetailsDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO) {
|
|
|
ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData = fullCarDataDTO.getFullCarData();
|
|
|
+ this.approvedLoad = fullCarData.getApprovedLoad();
|
|
|
+ this.approvedPassengersCapacity = fullCarData.getApprovedPassengersCapacity();
|
|
|
this.brand = fullCarData.getModelName();
|
|
|
+ this.carAlias = fullCarData.getModelName();
|
|
|
+ this.carType = fullCarData.getCarType();
|
|
|
+ this.carYear = fullCarData.getCarYear();
|
|
|
+ this.deptCode = fullCarDataDTO.getPlatFormCar().getDeptCode();
|
|
|
this.displacement = fullCarData.getDisplacement()/1000;
|
|
|
+ this.fuelType = fullCarData.getFuelType();
|
|
|
this.grossMass = "--";
|
|
|
- this.deptCode = fullCarDataDTO.getPlatFormCar().getDeptCode();
|
|
|
- this.platSeriesGroup = "--";
|
|
|
- this.modelCode = "--";
|
|
|
this.groupName = "--";
|
|
|
+ this.localModelCode = fullCarData.getLocalModelCode();
|
|
|
+ this.modelCode = "--";
|
|
|
+ this.modelName = fullCarData.getModelName();
|
|
|
+ this.newVehicleClass = fullCarData.getNewVehicleClass();
|
|
|
+ this.platSeriesGroup = "--";
|
|
|
+ this.power = fullCarData.getPower();
|
|
|
+ this.purchasePrice = fullCarData.getPurchasePrice();
|
|
|
+ this.remark = fullCarData.getRemark();
|
|
|
+ this.series = fullCarData.getSeries();
|
|
|
+ this.taxReliefFlag = fullCarData.getTaxReliefFlag();
|
|
|
+ this.transmissionType = fullCarData.getTransmissionType();
|
|
|
+ this.unladenMass = fullCarData.getUnladenMass();
|
|
|
+ this.vehicleRisk = new VehicleRiskDTO();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Data
|