|
|
@@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -170,7 +171,8 @@ public class ModelsQueryResponse extends BaseResponse {
|
|
|
this.brand = zmCarInfoVO.getBrand();
|
|
|
this.modelName = zmCarInfoVO.getModelName();
|
|
|
this.brandCode = zmCarInfoVO.getBrandCode();
|
|
|
- this.displacement = Double.parseDouble(zmCarInfoVO.getDisplacement()) * 0.001;
|
|
|
+ this.displacement =
|
|
|
+ BigDecimal.valueOf(Double.parseDouble(zmCarInfoVO.getDisplacement())).multiply(BigDecimal.valueOf(0.001)).doubleValue();
|
|
|
this.energyTypes = zmCarInfoVO.getEnergyTypes();
|
|
|
this.grossMass = Double.parseDouble(zmCarInfoVO.getGrossMass());
|
|
|
this.lfDate = zmCarInfoVO.getCarYear();
|