MesHwdgTime.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.jeesite.modules.mes.entity;
  2. import javax.validation.constraints.Size;
  3. import java.util.Date;
  4. import com.jeesite.common.mybatis.annotation.JoinTable;
  5. import com.jeesite.common.mybatis.annotation.JoinTable.Type;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import com.jeesite.common.entity.DataEntity;
  8. import com.jeesite.common.mybatis.annotation.Column;
  9. import com.jeesite.common.mybatis.annotation.Table;
  10. import com.jeesite.common.mybatis.mapper.query.QueryType;
  11. /**
  12. * mes_hwdg_timeEntity
  13. * @author system
  14. * @version 2026-03-30
  15. */
  16. @Table(name="mes_hwdg_time", alias="a", label="mes_hwdg_time信息", columns={
  17. @Column(name="id", attrName="id", label="id", isPK=true),
  18. @Column(name="sn", attrName="sn", label="sn"),
  19. @Column(name="start_date", attrName="startDate", label="开始时间", isUpdateForce=true),
  20. @Column(name="end_date", attrName="endDate", label="结束时间", isUpdateForce=true),
  21. @Column(name="interval", attrName="interval", label="间隔时间", comment="间隔时间(秒)", isUpdateForce=true),
  22. @Column(name="create_date", attrName="createDate", label="生产时间", isUpdate=false, isQuery=false, isUpdateForce=true),
  23. @Column(name="update_date", attrName="updateDate", label="修改时间", isQuery=false, isUpdateForce=true),
  24. @Column(name="dg_state", attrName="dgState", label="状态", comment="状态(0表示未结束,1表示已经结束)"),
  25. @Column(name="product_cate", attrName="productCate", label="产线编号"),
  26. @Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
  27. @Column(name="update_by", attrName="updateBy", label="修改人", isQuery=false),
  28. }, orderBy="a.update_date DESC"
  29. )
  30. public class MesHwdgTime extends DataEntity<MesHwdgTime> {
  31. private static final long serialVersionUID = 1L;
  32. private String sn; // sn
  33. private Date startDate; // 开始时间
  34. private Date endDate; // 结束时间
  35. private Integer interval; // 间隔时间(秒)
  36. private String dgState; // 状态(0表示未结束,1表示已经结束)
  37. private String productCate; // 产线编号
  38. public MesHwdgTime() {
  39. this(null);
  40. }
  41. public MesHwdgTime(String id){
  42. super(id);
  43. }
  44. @Size(min=0, max=255, message="sn长度不能超过 255 个字符")
  45. public String getSn() {
  46. return sn;
  47. }
  48. public void setSn(String sn) {
  49. this.sn = sn;
  50. }
  51. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  52. public Date getStartDate() {
  53. return startDate;
  54. }
  55. public void setStartDate(Date startDate) {
  56. this.startDate = startDate;
  57. }
  58. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  59. public Date getEndDate() {
  60. return endDate;
  61. }
  62. public void setEndDate(Date endDate) {
  63. this.endDate = endDate;
  64. }
  65. public Integer getInterval() {
  66. return interval;
  67. }
  68. public void setInterval(Integer interval) {
  69. this.interval = interval;
  70. }
  71. @Size(min=0, max=1, message="状态长度不能超过 1 个字符")
  72. public String getDgState() {
  73. return dgState;
  74. }
  75. public void setDgState(String dgState) {
  76. this.dgState = dgState;
  77. }
  78. @Size(min=0, max=20, message="产线编号长度不能超过 20 个字符")
  79. public String getProductCate() {
  80. return productCate;
  81. }
  82. public void setProductCate(String productCate) {
  83. this.productCate = productCate;
  84. }
  85. }