| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- package com.jeesite.modules.mes.entity;
- import javax.validation.constraints.NotBlank;
- import javax.validation.constraints.Size;
- import com.jeesite.common.entity.DataEntity;
- import com.jeesite.common.mybatis.annotation.Column;
- import com.jeesite.common.mybatis.annotation.Table;
- import com.jeesite.common.mybatis.mapper.query.QueryType;
- /**
- * 客户端版本管理Entity
- * @author jingbo
- * @version 2026-05-25
- */
- @Table(name="mes_client", alias="a", label="客户端版本管理信息", columns={
- @Column(name="id", attrName="id", label="id", isPK=true),
- @Column(name="version", attrName="version", label="版本号", isUpdateForce=true),
- @Column(name="content", attrName="content", label="更新内容", queryType=QueryType.LIKE),
- @Column(name="state", attrName="state", label="状态"),
- @Column(name="create_by", attrName="createBy", label="创建者", isUpdate=false, isQuery=false),
- @Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
- @Column(name="update_by", attrName="updateBy", label="更新者", isQuery=false),
- @Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
- }, orderBy="a.update_date DESC"
- )
- public class MesClient extends DataEntity<MesClient> {
-
- private static final long serialVersionUID = 1L;
- private Long version; // 版本号
- private String content; // 更新内容
- private String state; // 状态
- private String path;
- public MesClient() {
- this(null);
- }
-
- public MesClient(String id){
- super(id);
- }
-
- public Long getVersion() {
- return version;
- }
- public void setVersion(Long version) {
- this.version = version;
- }
-
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
-
- @NotBlank(message="状态不能为空")
- @Size(min=0, max=1, message="状态长度不能超过 1 个字符")
- public String getState() {
- return state;
- }
- public void setState(String state) {
- this.state = state;
- }
- public String getPath() {
- return path;
- }
- public void setPath(String path) {
- this.path = path;
- }
-
- }
|