package com.jeesite.modules.mes.entity; import javax.validation.constraints.Size; import java.util.Date; import com.jeesite.common.mybatis.annotation.JoinTable; import com.jeesite.common.mybatis.annotation.JoinTable.Type; import com.fasterxml.jackson.annotation.JsonFormat; 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; /** * mes_hwdg_timeEntity * @author system * @version 2026-03-30 */ @Table(name="mes_hwdg_time", alias="a", label="mes_hwdg_time信息", columns={ @Column(name="id", attrName="id", label="id", isPK=true), @Column(name="sn", attrName="sn", label="sn"), @Column(name="start_date", attrName="startDate", label="开始时间", isUpdateForce=true), @Column(name="end_date", attrName="endDate", label="结束时间", isUpdateForce=true), @Column(name="interval", attrName="interval", label="间隔时间", comment="间隔时间(秒)", isUpdateForce=true), @Column(name="create_date", attrName="createDate", label="生产时间", isUpdate=false, isQuery=false, isUpdateForce=true), @Column(name="update_date", attrName="updateDate", label="修改时间", isQuery=false, isUpdateForce=true), @Column(name="dg_state", attrName="dgState", label="状态", comment="状态(0表示未结束,1表示已经结束)"), @Column(name="product_cate", attrName="productCate", label="产线编号"), @Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false), @Column(name="update_by", attrName="updateBy", label="修改人", isQuery=false), }, orderBy="a.update_date DESC" ) public class MesHwdgTime extends DataEntity { private static final long serialVersionUID = 1L; private String sn; // sn private Date startDate; // 开始时间 private Date endDate; // 结束时间 private Integer interval; // 间隔时间(秒) private String dgState; // 状态(0表示未结束,1表示已经结束) private String productCate; // 产线编号 public MesHwdgTime() { this(null); } public MesHwdgTime(String id){ super(id); } @Size(min=0, max=255, message="sn长度不能超过 255 个字符") public String getSn() { return sn; } public void setSn(String sn) { this.sn = sn; } @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date getStartDate() { return startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } public Integer getInterval() { return interval; } public void setInterval(Integer interval) { this.interval = interval; } @Size(min=0, max=1, message="状态长度不能超过 1 个字符") public String getDgState() { return dgState; } public void setDgState(String dgState) { this.dgState = dgState; } @Size(min=0, max=20, message="产线编号长度不能超过 20 个字符") public String getProductCate() { return productCate; } public void setProductCate(String productCate) { this.productCate = productCate; } }