MesMoldResume.java 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. package com.jeesite.modules.mes.entity;
  2. import java.util.Date;
  3. import javax.validation.constraints.Size;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.jeesite.common.entity.DataEntity;
  6. import com.jeesite.common.mybatis.annotation.Column;
  7. import com.jeesite.common.mybatis.annotation.Table;
  8. /**
  9. * 模具履历Entity
  10. * @author mes
  11. * @version 2026-06-27
  12. */
  13. @Table(name="mes_mold_resume", alias="a", label="模具履历信息", columns={
  14. @Column(name="id", attrName="id", label="id", isPK=true),
  15. @Column(name="mold_name", attrName="moldName", label="模具名称", isQuery=true),
  16. @Column(name="mold_code", attrName="moldCode", label="模具编号", isQuery=true),
  17. @Column(name="cavity_number", attrName="cavityNumber", label="模具穴数"),
  18. @Column(name="entry_date", attrName="entryDate", label="进厂日期", isQuery=true),
  19. @Column(name="manufacturer", attrName="manufacturer", label="制造厂家", isQuery=true),
  20. @Column(name="product_name", attrName="productName", label="产品名称", isQuery=true),
  21. @Column(name="product_drawing_no", attrName="productDrawingNo", label="产品图号"),
  22. @Column(name="design_life", attrName="designLife", label="设计寿命"),
  23. @Column(name="mold_size", attrName="moldSize", label="模具尺寸"),
  24. @Column(name="applicable_machine", attrName="applicableMachine", label="适用机台"),
  25. @Column(name="product_weight", attrName="productWeight", label="产品重量"),
  26. @Column(name="remarks", attrName="remarks", label="备注"),
  27. @Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
  28. @Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
  29. @Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
  30. @Column(name="update_date", attrName="updateDate", label="update_date", isQuery=false, isUpdateForce=true),
  31. }, orderBy="a.update_date DESC"
  32. )
  33. public class MesMoldResume extends DataEntity<MesMoldResume> {
  34. private static final long serialVersionUID = 1L;
  35. private String moldName; // 模具名称
  36. private String moldCode; // 模具编号
  37. private Integer cavityNumber; // 模具穴数
  38. private Date entryDate; // 进厂日期
  39. private String manufacturer; // 制造厂家
  40. private String productName; // 产品名称
  41. private String productDrawingNo; // 产品图号
  42. private String designLife; // 设计寿命
  43. private String moldSize; // 模具尺寸
  44. private String applicableMachine; // 适用机台
  45. private String productWeight; // 产品重量
  46. public MesMoldResume() {
  47. this(null);
  48. }
  49. public MesMoldResume(String id){
  50. super(id);
  51. }
  52. @Size(min=0, max=255, message="模具名称长度不能超过 255 个字符")
  53. public String getMoldName() {
  54. return moldName;
  55. }
  56. public void setMoldName(String moldName) {
  57. this.moldName = moldName;
  58. }
  59. @Size(min=0, max=100, message="模具编号长度不能超过 100 个字符")
  60. public String getMoldCode() {
  61. return moldCode;
  62. }
  63. public void setMoldCode(String moldCode) {
  64. this.moldCode = moldCode;
  65. }
  66. public Integer getCavityNumber() {
  67. return cavityNumber;
  68. }
  69. public void setCavityNumber(Integer cavityNumber) {
  70. this.cavityNumber = cavityNumber;
  71. }
  72. @JsonFormat(pattern = "yyyy-MM-dd")
  73. public Date getEntryDate() {
  74. return entryDate;
  75. }
  76. public void setEntryDate(Date entryDate) {
  77. this.entryDate = entryDate;
  78. }
  79. @Size(min=0, max=255, message="制造厂家长度不能超过 255 个字符")
  80. public String getManufacturer() {
  81. return manufacturer;
  82. }
  83. public void setManufacturer(String manufacturer) {
  84. this.manufacturer = manufacturer;
  85. }
  86. @Size(min=0, max=255, message="产品名称长度不能超过 255 个字符")
  87. public String getProductName() {
  88. return productName;
  89. }
  90. public void setProductName(String productName) {
  91. this.productName = productName;
  92. }
  93. @Size(min=0, max=100, message="产品图号长度不能超过 100 个字符")
  94. public String getProductDrawingNo() {
  95. return productDrawingNo;
  96. }
  97. public void setProductDrawingNo(String productDrawingNo) {
  98. this.productDrawingNo = productDrawingNo;
  99. }
  100. @Size(min=0, max=100, message="设计寿命长度不能超过 100 个字符")
  101. public String getDesignLife() {
  102. return designLife;
  103. }
  104. public void setDesignLife(String designLife) {
  105. this.designLife = designLife;
  106. }
  107. @Size(min=0, max=255, message="模具尺寸长度不能超过 255 个字符")
  108. public String getMoldSize() {
  109. return moldSize;
  110. }
  111. public void setMoldSize(String moldSize) {
  112. this.moldSize = moldSize;
  113. }
  114. @Size(min=0, max=100, message="适用机台长度不能超过 100 个字符")
  115. public String getApplicableMachine() {
  116. return applicableMachine;
  117. }
  118. public void setApplicableMachine(String applicableMachine) {
  119. this.applicableMachine = applicableMachine;
  120. }
  121. @Size(min=0, max=100, message="产品重量长度不能超过 100 个字符")
  122. public String getProductWeight() {
  123. return productWeight;
  124. }
  125. public void setProductWeight(String productWeight) {
  126. this.productWeight = productWeight;
  127. }
  128. }