|
|
@@ -1,63 +1,74 @@
|
|
|
package com.jeesite.modules.mes.entity;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
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.JoinTable;
|
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
|
+import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
|
|
|
/**
|
|
|
* 模具维保Entity
|
|
|
- * @author mes
|
|
|
- * @version 2026-06-27
|
|
|
+ * @author sxl
|
|
|
+ * @version 2026-06-28
|
|
|
*/
|
|
|
@Table(name="mes_mold_maintenance", alias="a", label="模具维保信息", columns={
|
|
|
@Column(name="id", attrName="id", label="id", isPK=true),
|
|
|
- @Column(name="mold_resume_id", attrName="moldResumeId", label="模具履历"),
|
|
|
- @Column(name="maintenance_date", attrName="maintenanceDate", label="维保日期", isQuery=true),
|
|
|
+ @Column(name="mold_resume_id", attrName="moldResumeId", label="模具履历ID", comment="模具履历ID(关联mes_mold_resume.id)"),
|
|
|
+ @Column(name="mold_code", attrName="moldCode", label="模具编号"),
|
|
|
+ @Column(name="maintenance_date", attrName="maintenanceDate", label="维保日期", isUpdateForce=true),
|
|
|
@Column(name="content", attrName="content", label="维保内容及过程"),
|
|
|
- @Column(name="repair_type", attrName="repairType", label="修模类型", isQuery=true),
|
|
|
+ @Column(name="repair_type", attrName="repairType", label="修模类型"),
|
|
|
@Column(name="initiate_dept", attrName="initiateDept", label="发起部门"),
|
|
|
- @Column(name="initiate_user", attrName="initiateUser", label="发起人", isQuery=true),
|
|
|
+ @Column(name="initiate_user", attrName="initiateUser", label="发起人"),
|
|
|
@Column(name="reason", attrName="reason", label="原因"),
|
|
|
@Column(name="accept_result", attrName="acceptResult", label="验收结果"),
|
|
|
- @Column(name="remarks", attrName="remarks", label="备注"),
|
|
|
- @Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
|
|
|
- @Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false, isUpdateForce=true),
|
|
|
- @Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
|
|
|
- @Column(name="update_date", attrName="updateDate", label="update_date", isQuery=false, isUpdateForce=true),
|
|
|
-}, joinTable={
|
|
|
- @JoinTable(type= JoinTable.Type.LEFT_JOIN, entity=MesMoldResume.class, attrName="this", alias="b",
|
|
|
- on="a.mold_resume_id = b.id",
|
|
|
- columns={
|
|
|
- @Column(name="mold_name", attrName="moldName", label="模具名称", isQuery=true),
|
|
|
- }),
|
|
|
-}, orderBy="a.update_date DESC"
|
|
|
+ @Column(name="remarks", attrName="remarks", label="备注", queryType=QueryType.LIKE),
|
|
|
+ @Column(name="muns_ms", attrName="munsMs", label="模数"),
|
|
|
+ @Column(name="nums_ms_sum", attrName="numsMsSum", label="累计模数"),
|
|
|
+ @Column(name="pc_code", attrName="pcCode", 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),
|
|
|
+ }, joinTable={
|
|
|
+ @JoinTable(type=Type.LEFT_JOIN, entity=MesMoldResume.class, attrName="this", alias="b",
|
|
|
+ on="b.mold_code = a.mold_code",
|
|
|
+ columns={
|
|
|
+ @Column(name="mold_name", attrName="moldName", label="模具名称", isQuery=true, queryType=QueryType.LIKE),
|
|
|
+ }),
|
|
|
+ }, orderBy="a.update_date DESC"
|
|
|
)
|
|
|
public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
-
|
|
|
+
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
- private String moldResumeId; // 模具履历ID
|
|
|
- private String moldName; // 模具名称(关联模具履历表)
|
|
|
+ private String moldResumeId; // 模具履历ID(关联mes_mold_resume.id)
|
|
|
+ private String moldCode; // 模具编号
|
|
|
+ private String moldName; // 模具名称(关联mes_mold_resume)
|
|
|
private Date maintenanceDate; // 维保日期
|
|
|
- private String content; // 维保内容及过程
|
|
|
- private String repairType; // 修模类型
|
|
|
+ private String content; // 维保内容及过程
|
|
|
+ private String repairType; // 修模类型
|
|
|
private String initiateDept; // 发起部门
|
|
|
private String initiateUser; // 发起人
|
|
|
- private String reason; // 原因
|
|
|
+ private String reason; // 原因
|
|
|
private String acceptResult; // 验收结果
|
|
|
+ private String munsMs; // 模数
|
|
|
+ private String numsMsSum; // 累计模数
|
|
|
+ private String pcCode; // 批次号
|
|
|
|
|
|
public MesMoldMaintenance() {
|
|
|
this(null);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public MesMoldMaintenance(String id){
|
|
|
super(id);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="模具履历ID长度不能超过 64 个字符")
|
|
|
public String getMoldResumeId() {
|
|
|
return moldResumeId;
|
|
|
}
|
|
|
@@ -65,6 +76,15 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setMoldResumeId(String moldResumeId) {
|
|
|
this.moldResumeId = moldResumeId;
|
|
|
}
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="模具编号长度不能超过 64 个字符")
|
|
|
+ public String getMoldCode() {
|
|
|
+ return moldCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMoldCode(String moldCode) {
|
|
|
+ this.moldCode = moldCode;
|
|
|
+ }
|
|
|
|
|
|
@Size(min=0, max=255, message="模具名称长度不能超过 255 个字符")
|
|
|
public String getMoldName() {
|
|
|
@@ -74,7 +94,7 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setMoldName(String moldName) {
|
|
|
this.moldName = moldName;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
public Date getMaintenanceDate() {
|
|
|
return maintenanceDate;
|
|
|
@@ -83,7 +103,8 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setMaintenanceDate(Date maintenanceDate) {
|
|
|
this.maintenanceDate = maintenanceDate;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @Size(min=0, max=100, message="维保内容及过程长度不能超过 100 个字符")
|
|
|
public String getContent() {
|
|
|
return content;
|
|
|
}
|
|
|
@@ -91,8 +112,8 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setContent(String content) {
|
|
|
this.content = content;
|
|
|
}
|
|
|
-
|
|
|
- @Size(min=0, max=100, message="修模类型长度不能超过 100 个字符")
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="修模类型长度不能超过 64 个字符")
|
|
|
public String getRepairType() {
|
|
|
return repairType;
|
|
|
}
|
|
|
@@ -100,8 +121,8 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setRepairType(String repairType) {
|
|
|
this.repairType = repairType;
|
|
|
}
|
|
|
-
|
|
|
- @Size(min=0, max=100, message="发起部门长度不能超过 100 个字符")
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="发起部门长度不能超过 64 个字符")
|
|
|
public String getInitiateDept() {
|
|
|
return initiateDept;
|
|
|
}
|
|
|
@@ -109,8 +130,8 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setInitiateDept(String initiateDept) {
|
|
|
this.initiateDept = initiateDept;
|
|
|
}
|
|
|
-
|
|
|
- @Size(min=0, max=100, message="发起人长度不能超过 100 个字符")
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="发起人长度不能超过 64 个字符")
|
|
|
public String getInitiateUser() {
|
|
|
return initiateUser;
|
|
|
}
|
|
|
@@ -118,7 +139,8 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setInitiateUser(String initiateUser) {
|
|
|
this.initiateUser = initiateUser;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="原因长度不能超过 64 个字符")
|
|
|
public String getReason() {
|
|
|
return reason;
|
|
|
}
|
|
|
@@ -126,7 +148,7 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setReason(String reason) {
|
|
|
this.reason = reason;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@Size(min=0, max=100, message="验收结果长度不能超过 100 个字符")
|
|
|
public String getAcceptResult() {
|
|
|
return acceptResult;
|
|
|
@@ -135,4 +157,32 @@ public class MesMoldMaintenance extends DataEntity<MesMoldMaintenance> {
|
|
|
public void setAcceptResult(String acceptResult) {
|
|
|
this.acceptResult = acceptResult;
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="模数长度不能超过 64 个字符")
|
|
|
+ public String getMunsMs() {
|
|
|
+ return munsMs;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMunsMs(String munsMs) {
|
|
|
+ this.munsMs = munsMs;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="累计模数长度不能超过 64 个字符")
|
|
|
+ public String getNumsMsSum() {
|
|
|
+ return numsMsSum;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNumsMsSum(String numsMsSum) {
|
|
|
+ this.numsMsSum = numsMsSum;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Size(min=0, max=64, message="批次号长度不能超过 64 个字符")
|
|
|
+ public String getPcCode() {
|
|
|
+ return pcCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPcCode(String pcCode) {
|
|
|
+ this.pcCode = pcCode;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|