Ver Fonte

紫金新能源排量问题

wks há 2 anos atrás
pai
commit
d12ea1879c

+ 2 - 1
src/main/java/com/ydtech/modules/order/entity/api/zijin/request/CalculatePremiumRequest.java

@@ -978,7 +978,8 @@ public class CalculatePremiumRequest implements Serializable {
             this.purchasePrice = vehicleModelInfosDTO.getPurchasePrice();
             this.vehicleId = vehicleModelInfosDTO.getVehicleId();
             this.brandName = vehicleModelInfosDTO.getModelName();
-            this.exhaustCapacity = vehicleModelInfosDTO.getExhaustCapacity();
+            this.exhaustCapacity = StringUtils.isNotEmpty(vehicleModelInfosDTO.getExhaustCapacity()) ?
+                    vehicleModelInfosDTO.getExhaustCapacity() : "0";
             this.platVehicleCode = vehicleModelInfosDTO.getPlatVehicleCode();
             this.modelEnergyType = vehicleModelInfosDTO.getPowerTypeCode();
             this.printModelName = vehicleModelInfosDTO.getModelName();