|
|
@@ -6,6 +6,11 @@ import com.ydtech.validation.annotation.CheckDateTime;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
+import org.hibernate.validator.constraints.Range;
|
|
|
+
|
|
|
+import javax.validation.constraints.Digits;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import javax.validation.constraints.Past;
|
|
|
|
|
|
/**
|
|
|
* @author qinfenglong
|
|
|
@@ -17,6 +22,7 @@ import lombok.Data;
|
|
|
@ApiModel(value = "车辆信息")
|
|
|
public class CarInfoVo {
|
|
|
|
|
|
+ @NotNull
|
|
|
@ApiModelProperty(value = "品牌型号")
|
|
|
private String brandName;
|
|
|
|
|
|
@@ -29,9 +35,12 @@ public class CarInfoVo {
|
|
|
@ApiModelProperty(value = "行业车型编码")
|
|
|
private String ciModelCode;
|
|
|
|
|
|
+ @NotNull(message = "整备质量不能为空")
|
|
|
+ @Range(message = "整备质量必须为整数")
|
|
|
@ApiModelProperty(value = "整备质量")
|
|
|
private String completeKerbMass;
|
|
|
|
|
|
+ @NotNull(message = "发动机号不能为空")
|
|
|
@ApiModelProperty(value = "发动机号")
|
|
|
private String engineNo;
|
|
|
|
|
|
@@ -44,9 +53,11 @@ public class CarInfoVo {
|
|
|
@ApiModelProperty(value = "工厂编码")
|
|
|
private String factoryid;
|
|
|
|
|
|
+ @NotNull(message = "车架号不能为空")
|
|
|
@ApiModelProperty(value = "车架号")
|
|
|
private String frameNo;
|
|
|
|
|
|
+ @NotNull(message = "车牌好不能为空")
|
|
|
@ApiModelProperty(value = "车牌")
|
|
|
private String licenseNo;
|
|
|
|
|
|
@@ -56,21 +67,28 @@ public class CarInfoVo {
|
|
|
@ApiModelProperty(value = "精友车型编码")
|
|
|
private String modelCode;
|
|
|
|
|
|
+ @NotNull(message = "新车购置价不能为空")
|
|
|
+ @Range(message = "新车购置价必须为整数")
|
|
|
@ApiModelProperty(value = "新车购置价")
|
|
|
private String purchasePrice;
|
|
|
|
|
|
+ @NotNull(message = "座位数不能为空")
|
|
|
+ @Range(min = 1,max = 99,message = "座位数只能填写 1 - 99的整数")
|
|
|
@ApiModelProperty(value = "座位数")
|
|
|
private String seatCount;
|
|
|
|
|
|
@ApiModelProperty(value = "车辆类型(轿车类,特种车类)")
|
|
|
private String vehicleclass;
|
|
|
|
|
|
+ @NotNull(message = "车架号不能为空")
|
|
|
@ApiModelProperty(value = "车架号")
|
|
|
private String vinNo;
|
|
|
|
|
|
+ @NotNull(message = "车型不能为空")
|
|
|
@ApiModelProperty(value = "车型")
|
|
|
private String familyName;
|
|
|
|
|
|
+ @NotNull(message = "车型名称不能为空")
|
|
|
@ApiModelProperty(value = "车型名称")
|
|
|
private String modelcname;
|
|
|
|
|
|
@@ -82,12 +100,14 @@ public class CarInfoVo {
|
|
|
/**
|
|
|
* @see com.ydtech.constants.enums.dict.insurance.EnergyType
|
|
|
*/
|
|
|
+ @NotNull(message = "能源种类不能为空")
|
|
|
@ApiModelProperty(value = "能源种类")
|
|
|
private String energyType;
|
|
|
|
|
|
@ApiModelProperty(value = "总质量")
|
|
|
private String vehicleweight;
|
|
|
|
|
|
+ @Range(message = "核定载质量必须为整数")
|
|
|
@ApiModelProperty(value = "核定载质量")
|
|
|
private String limitLoad;
|
|
|
|
|
|
@@ -97,19 +117,23 @@ public class CarInfoVo {
|
|
|
/**
|
|
|
* @see com.ydtech.constants.enums.dict.insurance.VehicleType
|
|
|
*/
|
|
|
+ @NotNull(message = "车辆种类不能为空")
|
|
|
@ApiModelProperty(value = "车辆种类")
|
|
|
private String cimodelclass;
|
|
|
|
|
|
@ApiModelProperty(value = "燃料类型")
|
|
|
private String powertype;
|
|
|
|
|
|
+ @Digits(integer = Integer.MAX_VALUE, fraction = 5, message = "排量必须是小数,且小数位最多5位")
|
|
|
@ApiModelProperty(value = "排量(和exhaustScale区分开)")
|
|
|
private String enginedesc;
|
|
|
|
|
|
+ @NotNull(message = "行驶证注册日期不能空")
|
|
|
@ApiModelProperty(value = "行驶证注册日期")
|
|
|
@CheckDateTime(format = "yyyy-MM-dd", message = "行驶证注册日期的正确格式为yyyy-MM-dd")
|
|
|
private String registerDate;
|
|
|
|
|
|
+ @NotNull(message = "发证日期不能为空")
|
|
|
@ApiModelProperty(value = "发证日期")
|
|
|
@CheckDateTime(format = "yyyy-MM-dd", message = "发证日期的正确格式为yyyy-MM-dd")
|
|
|
private String issueDate;
|
|
|
@@ -141,6 +165,7 @@ public class CarInfoVo {
|
|
|
private boolean outOfInsurance;
|
|
|
|
|
|
@ApiModelProperty(value = "过户日期")
|
|
|
+ @CheckDateTime(format = "yyyy-MM-dd", message = "发证日期的正确格式为yyyy-MM-dd")
|
|
|
private String transferDate;
|
|
|
|
|
|
@ApiModelProperty(value = "是否贷款车")
|