|
|
@@ -3,6 +3,7 @@ package com.ydtech.modules.ins.model.guoren;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.ydtech.constants.enums.dict.insurance.VehicleType;
|
|
|
import com.ydtech.modules.ins.model.vo.CarInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.modules.ins.model.vo.RiskInfoVo;
|
|
|
@@ -349,6 +350,10 @@ public class NonAutoInsOrderReq {
|
|
|
@JSONField(name = "carModels")
|
|
|
private String carModels;
|
|
|
|
|
|
+ @JsonProperty(value = "carCategory")
|
|
|
+ @JSONField(name = "carCategory")
|
|
|
+ private String carCategory;
|
|
|
+
|
|
|
@JsonProperty(value = "carType")
|
|
|
@JSONField(name = "carType")
|
|
|
private String carType;
|
|
|
@@ -387,8 +392,15 @@ public class NonAutoInsOrderReq {
|
|
|
|
|
|
public ObjCarListDTO(CarInfoVo carInfo, VinQueryResp.DataDTO vinQ) {
|
|
|
this.carModels = vinQ.getBrandNameBC();
|
|
|
- this.carType = "0";
|
|
|
+ this.carType = carInfo.getCartype();
|
|
|
this.carTypeCode = "8A";
|
|
|
+ //设置车辆大类
|
|
|
+ if(VehicleType.VT_A0.getCode().equals(carInfo.getCimodelclass())){
|
|
|
+ this.carCategory = "A";
|
|
|
+ }else if(VehicleType.VT_A1.getCode().equals(carInfo.getCimodelclass())) {
|
|
|
+ this.carCategory = "H";
|
|
|
+ }
|
|
|
+
|
|
|
this.clnt = StringUtils.isNotEmpty(carInfo.getLicenseNo()) ? "2" : "1";
|
|
|
this.frameNo = carInfo.getFrameNo();
|
|
|
this.licenseNo = carInfo.getLicenseNo();
|