|
@@ -404,7 +404,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
private ModelDetailsDTO modelDetails;
|
|
private ModelDetailsDTO modelDetails;
|
|
|
|
|
|
|
|
public InsuredObjectDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO fullCarDataDTO, QuoteVo quoteVo, ZmCrawlerActualValueResponse actualValueResponse) {
|
|
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;
|
|
this.simpleStadarCar = stadarCarDTO;
|
|
|
|
|
|
|
|
PlatformCarDTO platformCarDTO = new PlatformCarDTO();
|
|
PlatformCarDTO platformCarDTO = new PlatformCarDTO();
|
|
@@ -823,7 +823,7 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
@JsonProperty("series")
|
|
@JsonProperty("series")
|
|
|
private String series;
|
|
private String series;
|
|
|
|
|
|
|
|
- public SimpleStadarCarDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData){
|
|
|
|
|
|
|
+ public SimpleStadarCarDTO(ZmCrawlerModelQueryResponse.FullCarDataDTO.FullCarData fullCarData,CarInfoVo carInfo){
|
|
|
this.approvedLoad = fullCarData.getApprovedLoad();
|
|
this.approvedLoad = fullCarData.getApprovedLoad();
|
|
|
this.approvedPassengersCapacity = fullCarData.getApprovedPassengersCapacity();
|
|
this.approvedPassengersCapacity = fullCarData.getApprovedPassengersCapacity();
|
|
|
this.brand = fullCarData.getModelName();
|
|
this.brand = fullCarData.getModelName();
|
|
@@ -842,7 +842,12 @@ public class ZmCrawlerQuotedPriceRequest extends BaseRequest {
|
|
|
this.purchasePrice = fullCarData.getPurchasePrice();
|
|
this.purchasePrice = fullCarData.getPurchasePrice();
|
|
|
this.purchasePriceCopy = fullCarData.getPurchasePrice();
|
|
this.purchasePriceCopy = fullCarData.getPurchasePrice();
|
|
|
this.series = fullCarData.getSeries();
|
|
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;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|