字段长度判断
This commit is contained in:
parent
79f6a099a6
commit
55acf99070
|
|
@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -27,6 +28,7 @@ public class BmAssetAttributes extends BaseEntity implements Serializable {
|
||||||
@Excel(name = "资产类型名称")
|
@Excel(name = "资产类型名称")
|
||||||
@ApiModelProperty(value = "资产类型名称")
|
@ApiModelProperty(value = "资产类型名称")
|
||||||
@NotBlank(message = "资产类型名称不能为空")
|
@NotBlank(message = "资产类型名称不能为空")
|
||||||
|
@Size(max=50, message = "资产类型名称长度不能超过50")
|
||||||
private String assetName;
|
private String assetName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -35,6 +37,7 @@ public class BmAssetAttributes extends BaseEntity implements Serializable {
|
||||||
@Excel(name = "资产编码")
|
@Excel(name = "资产编码")
|
||||||
@ApiModelProperty(value = "资产编码")
|
@ApiModelProperty(value = "资产编码")
|
||||||
@NotBlank(message = "资产编码不能为空")
|
@NotBlank(message = "资产编码不能为空")
|
||||||
|
@Size(max=50, message = "资产编码名称长度不能超过50")
|
||||||
private String assetCode;
|
private String assetCode;
|
||||||
/**
|
/**
|
||||||
* 删除标志(0代表存在 2代表删除)
|
* 删除标志(0代表存在 2代表删除)
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import lombok.ToString;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 标段工程管理对象 bm_project
|
* 标段工程管理对象 bm_project
|
||||||
|
|
@ -31,6 +32,7 @@ public class BmProject extends BaseEntity
|
||||||
@Excel(name = "工程项目名称")
|
@Excel(name = "工程项目名称")
|
||||||
@ApiModelProperty(value = "工程项目名称")
|
@ApiModelProperty(value = "工程项目名称")
|
||||||
@NotBlank(message = "工程名称不能为空")
|
@NotBlank(message = "工程名称不能为空")
|
||||||
|
@Size(max=255, message = "工程名称长度不能超过255")
|
||||||
private String proName;
|
private String proName;
|
||||||
|
|
||||||
/** 关联外部(第三方)的工程ID */
|
/** 关联外部(第三方)的工程ID */
|
||||||
|
|
@ -57,6 +59,7 @@ public class BmProject extends BaseEntity
|
||||||
|
|
||||||
@ApiModelProperty(value = "工程编码")
|
@ApiModelProperty(value = "工程编码")
|
||||||
@Excel(name = "i8工程编码")
|
@Excel(name = "i8工程编码")
|
||||||
|
@Size(max=60, message = "工程编号长度不能超过60")
|
||||||
private String proCode;
|
private String proCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -68,6 +71,7 @@ public class BmProject extends BaseEntity
|
||||||
|
|
||||||
@ApiModelProperty(value = "合同主体")
|
@ApiModelProperty(value = "合同主体")
|
||||||
@Excel(name = "合同主体")
|
@Excel(name = "合同主体")
|
||||||
|
@Size(max=60, message = "合同主体长度不能超过60")
|
||||||
private String contractPart;
|
private String contractPart;
|
||||||
|
|
||||||
/** 经度 */
|
/** 经度 */
|
||||||
|
|
@ -81,11 +85,13 @@ public class BmProject extends BaseEntity
|
||||||
/** 项目经理 */
|
/** 项目经理 */
|
||||||
@Excel(name = "项目经理")
|
@Excel(name = "项目经理")
|
||||||
@ApiModelProperty(value = "项目经理")
|
@ApiModelProperty(value = "项目经理")
|
||||||
|
@Size(max=64, message = "项目经理长度不能超过64")
|
||||||
private String proManager;
|
private String proManager;
|
||||||
|
|
||||||
/** 联系方式 */
|
/** 联系电话 */
|
||||||
@Excel(name = "联系方式")
|
@Excel(name = "联系电话")
|
||||||
@ApiModelProperty(value = "联系方式")
|
@ApiModelProperty(value = "联系电话")
|
||||||
|
@Size(max=64, message = "联系电话长度不能超过64")
|
||||||
private String telphone;
|
private String telphone;
|
||||||
|
|
||||||
@ApiModelProperty(value = "工程状态")
|
@ApiModelProperty(value = "工程状态")
|
||||||
|
|
@ -121,5 +127,6 @@ public class BmProject extends BaseEntity
|
||||||
private String proNature;
|
private String proNature;
|
||||||
|
|
||||||
@ApiModelProperty(value = "所属项目中心")
|
@ApiModelProperty(value = "所属项目中心")
|
||||||
|
@Size(max=60, message = "所属项目中心长度不能超过60")
|
||||||
private String proCenter;
|
private String proCenter;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import lombok.ToString;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 往来单位管理对象 bm_unit
|
* 往来单位管理对象 bm_unit
|
||||||
|
|
@ -29,6 +30,7 @@ public class BmUnit extends BaseEntity
|
||||||
@Excel(name = "单位名称")
|
@Excel(name = "单位名称")
|
||||||
@ApiModelProperty(value = "单位类型名称")
|
@ApiModelProperty(value = "单位类型名称")
|
||||||
@NotBlank(message = "单位名称不能为空")
|
@NotBlank(message = "单位名称不能为空")
|
||||||
|
@Size(max=30, message = "单位名称长度不能超过30")
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
/** 帐号状态(0正常 1停用) */
|
/** 帐号状态(0正常 1停用) */
|
||||||
|
|
@ -52,11 +54,13 @@ public class BmUnit extends BaseEntity
|
||||||
/** 联系人 */
|
/** 联系人 */
|
||||||
@Excel(name = "联系人")
|
@Excel(name = "联系人")
|
||||||
@ApiModelProperty(value = "联系人")
|
@ApiModelProperty(value = "联系人")
|
||||||
|
@Size(max=64, message = "联系人长度不能超过64")
|
||||||
private String linkMan;
|
private String linkMan;
|
||||||
|
|
||||||
/** 联系方式 */
|
/** 联系方式 */
|
||||||
@Excel(name = "联系方式")
|
@Excel(name = "联系方式")
|
||||||
@ApiModelProperty(value = "联系方式")
|
@ApiModelProperty(value = "联系方式")
|
||||||
|
@Size(max=64, message = "联系方式长度不能超过64")
|
||||||
private String telphone;
|
private String telphone;
|
||||||
|
|
||||||
/** 删除标志(0代表存在 2代表删除) */
|
/** 删除标志(0代表存在 2代表删除) */
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import lombok.ToString;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 配件类型管理对象 ma_part_type
|
* 配件类型管理对象 ma_part_type
|
||||||
|
|
@ -30,6 +31,7 @@ public class PartType extends BaseEntity
|
||||||
@Excel(name = "名称")
|
@Excel(name = "名称")
|
||||||
@ApiModelProperty(value = "类型名称")
|
@ApiModelProperty(value = "类型名称")
|
||||||
@NotBlank(message = "名称不能为空")
|
@NotBlank(message = "名称不能为空")
|
||||||
|
@Size(max=30, message = "名称长度不能超过30")
|
||||||
private String paName;
|
private String paName;
|
||||||
|
|
||||||
/** 上级ID */
|
/** 上级ID */
|
||||||
|
|
@ -47,11 +49,13 @@ public class PartType extends BaseEntity
|
||||||
/** 计量单位名称 */
|
/** 计量单位名称 */
|
||||||
@Excel(name = "计量单位")
|
@Excel(name = "计量单位")
|
||||||
@ApiModelProperty(value = "计量单位名称")
|
@ApiModelProperty(value = "计量单位名称")
|
||||||
|
@Size(max=64, message = "计量单位长度不能超过64")
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
/** 原值 */
|
/** 原值 */
|
||||||
@Excel(name = "购置价格(元)")
|
@Excel(name = "购置价格(元)")
|
||||||
@ApiModelProperty(value = "原值")
|
@ApiModelProperty(value = "原值")
|
||||||
|
@Size(max=10, message = "购置价格长度不能超过10")
|
||||||
private BigDecimal buyPrice;
|
private BigDecimal buyPrice;
|
||||||
|
|
||||||
/** 实时库存 */
|
/** 实时库存 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue