Procházet zdrojové kódy

中煤和渤海车型查询相关

shenweidong před 1 rokem
rodič
revize
6c84dec99b

+ 2 - 2
tenant/insurance/quotation-bohai/src/main/java/com/jzg/quote/bohai/api/entity/response/VehicleTypeQueryResponse.java

@@ -1,6 +1,7 @@
 package com.jzg.quote.bohai.api.entity.response;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.jzg.quotation.commons.entity.vo.quote.CoreModelsVo;
 import com.jzg.quotation.commons.filter.CarModelsFilter;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
@@ -122,7 +123,6 @@ public class VehicleTypeQueryResponse extends BoHaiBaseResponse {
                 return yearPattern;
             }
 
-            /*未引入CoreModelsVo,先注释
             public CoreModelsVo toCoreModelsVo(){
                 CoreModelsVo coreModelsVo = new CoreModelsVo();
                 coreModelsVo.setModelCode(this.getModelCode());
@@ -132,7 +132,7 @@ public class VehicleTypeQueryResponse extends BoHaiBaseResponse {
                 coreModelsVo.setPurchasePrice(this.getPurchasePrice());
                 coreModelsVo.setEnginedesc(this.getEngineCapacity());
                 return coreModelsVo;
-            }*/
+            }
         }
     }
 }

+ 47 - 0
tenant/insurance/quotation-commons/src/main/java/com/jzg/quotation/commons/entity/vo/quote/CoreModelsVo.java

@@ -0,0 +1,47 @@
+package com.jzg.quotation.commons.entity.vo.quote;
+
+import lombok.Data;
+
+/**
+ * @description: 保司核心返回车型
+ * @author: shenwd
+ * @date: 2025/3/10 11:04
+ **/
+@Data
+//@ApiModel("保司核心返回车型")
+public class CoreModelsVo {
+
+//    @ApiModelProperty(value = "行业车型编码")
+    private String modelCode;
+
+//    @ApiModelProperty(value = "行业车型编码")
+    private String modelName;
+
+//    @ApiModelProperty(value = "座位数")
+    private String seatCount;
+
+//    @ApiModelProperty(value = "年款")
+    private String carYear;
+
+//    @ApiModelProperty(value = "功率")
+    private String power;
+
+//    @ApiModelProperty(value = "排量")
+    private String enginedesc;
+
+//    @ApiModelProperty(value = "新车购置价")
+    private String purchasePrice;
+
+    public CoreModelsVo() {
+    }
+
+    public CoreModelsVo(String modelCode, String modelName, String seatCount, String carYear, String power, String enginedesc, String purchasePrice) {
+        this.modelCode = modelCode;
+        this.modelName = modelName;
+        this.seatCount = seatCount;
+        this.carYear = carYear;
+        this.power = power;
+        this.enginedesc = enginedesc;
+        this.purchasePrice = purchasePrice;
+    }
+}

+ 2 - 2
tenant/insurance/quotation-zhongmei/src/main/java/com/jzg/quote/zhongmei/api/entity/response/ModelsQueryResponse.java

@@ -1,6 +1,7 @@
 package com.jzg.quote.zhongmei.api.entity.response;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.jzg.quotation.commons.entity.vo.quote.CoreModelsVo;
 import com.jzg.quotation.commons.filter.CarModelsFilter;
 import com.jzg.quote.zhongmei.api.constant.enums.JingyouEnergyTypes;
 import com.jzg.quote.zhongmei.api.entity.ZmCarEntity;
@@ -171,7 +172,6 @@ public class ModelsQueryResponse extends BaseResponse{
         private String fuelTypeCode;
 
 
-        /*未引入CoreModelsVo,先注释
         public CoreModelsVo toCoreModelsVo() {
             CoreModelsVo coreModelsVo = new CoreModelsVo();
             coreModelsVo.setModelCode(this.localModelCode);
@@ -182,7 +182,7 @@ public class ModelsQueryResponse extends BaseResponse{
             coreModelsVo.setPurchasePrice(this.purchasePrice);
             coreModelsVo.setSeatCount(String.valueOf(this.approvedPassengersCapacity));
             return coreModelsVo;
-        }*/
+        }
 
         public ZmCarDTO toCarModelDTO() {
             ZmCarDTO carModelDTO = new ZmCarDTO();