| | |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Pattern; |
| | | |
| | | import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL; |
| | |
| | | @TableField("phone") |
| | | private String phone; |
| | | |
| | | @NotNull(message = "企业类型不能为空") |
| | | @ApiModelProperty("企业类型为 0研发类 1生产类 2中试类") |
| | | @TableField("type") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("删除标志,0未删除,1删除,默认0") |
| | | @TableField("del_flag") |
| | | private Integer delFlag; |
| | | |
| | | @NotBlank(message = "公司唯一编码为空") |
| | | @Length(min = 2, max = 2, message = "公司唯一编码只能为2位") |
| | | @ApiModelProperty("公司唯一编码(2位)") |
| | | @TableField("code") |
| | | private String code; |
| | | |
| | | @Version |
| | | @ApiModelProperty("乐观锁") |
| | | @TableField("version") |