|
@@ -1,62 +1,44 @@
|
|
|
package com.jeesite.modules.mes.entity;
|
|
package com.jeesite.modules.mes.entity;
|
|
|
|
|
|
|
|
-import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
|
|
+import javax.validation.constraints.Size;
|
|
|
|
|
+
|
|
|
import com.jeesite.common.entity.DataEntity;
|
|
import com.jeesite.common.entity.DataEntity;
|
|
|
import com.jeesite.common.mybatis.annotation.Column;
|
|
import com.jeesite.common.mybatis.annotation.Column;
|
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
|
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
-import com.jeesite.common.utils.excel.annotation.ExcelField;
|
|
|
|
|
-import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|
|
|
|
|
|
|
|
|
-import javax.validation.constraints.Size;
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 冷板绝缘检测Entity
|
|
|
|
|
- * @author LiuQing
|
|
|
|
|
- * @version 2025-03-07
|
|
|
|
|
|
|
+ * 绝缘耐压检测Entity
|
|
|
|
|
+ * @author hwb
|
|
|
|
|
+ * @version 2026-06-25
|
|
|
*/
|
|
*/
|
|
|
-@Table(name="mes_product_insulation2", alias="a", label="冷板绝缘检测信息", columns={
|
|
|
|
|
|
|
+@Table(name="mes_product_insulation2", alias="a", label="绝缘耐压检测信息", columns={
|
|
|
@Column(name="id", attrName="id", label="id", isPK=true),
|
|
@Column(name="id", attrName="id", label="id", isPK=true),
|
|
|
- @Column(name="sn", attrName="sn", label="工件码"),
|
|
|
|
|
- @Column(name="oprno", attrName="oprno", label="工位号"),
|
|
|
|
|
- @Column(name="test_type", attrName="testType", label="测试类型"),
|
|
|
|
|
- @Column(name="test_result", attrName="testResult", label="测试结果"),
|
|
|
|
|
- @Column(name="test_state", attrName="testState", label="测试状态"),
|
|
|
|
|
- @Column(name="voltage", attrName="voltage", label="测试电压"),
|
|
|
|
|
- @Column(name="res_or_cur", attrName="resOrCur", label="测试电阻/电流"),
|
|
|
|
|
- @Column(name="test_time", attrName="testTime", label="测试时间"),
|
|
|
|
|
- @Column(name="record_time", attrName="recordTime", label="记录时间", isUpdateForce=true),
|
|
|
|
|
|
|
+ @Column(name="sn", attrName="sn", label="工件码", queryType=QueryType.LIKE),
|
|
|
|
|
+ @Column(name="step", attrName="step", label="步骤"),
|
|
|
|
|
+ @Column(name="voltage", attrName="voltage", label="电压"),
|
|
|
|
|
+ @Column(name="voltage_unit", attrName="voltageUnit", label="电压单位"),
|
|
|
|
|
+ @Column(name="data", attrName="data", label="测试数据"),
|
|
|
|
|
+ @Column(name="data_unit", attrName="dataUnit", label="测试数据单位"),
|
|
|
|
|
+ @Column(name="result", attrName="result", label="测试结果"),
|
|
|
@Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
|
|
@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="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_by", attrName="updateBy", label="update_by", isQuery=false),
|
|
|
- @Column(name="update_date", attrName="updateDate", label="update_date", isQuery=false, isUpdateForce=true),
|
|
|
|
|
|
|
+ @Column(name="update_date", attrName="updateDate", label="update_date", isUpdateForce=true),
|
|
|
}, orderBy="a.update_date DESC"
|
|
}, orderBy="a.update_date DESC"
|
|
|
)
|
|
)
|
|
|
public class MesProductInsulation2 extends DataEntity<MesProductInsulation2> {
|
|
public class MesProductInsulation2 extends DataEntity<MesProductInsulation2> {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
|
private String sn; // 工件码
|
|
private String sn; // 工件码
|
|
|
- private String oprno; // 工位号
|
|
|
|
|
- private String testType; // 测试类型
|
|
|
|
|
- private String testResult; // 测试结果
|
|
|
|
|
- private String testState; // 测试状态
|
|
|
|
|
- private String voltage; // 测试电压
|
|
|
|
|
- private String resOrCur; // 测试电阻/电流
|
|
|
|
|
- private String testTime; // 测试时间
|
|
|
|
|
- private Date recordTime; // 记录时间
|
|
|
|
|
-
|
|
|
|
|
- @ExcelFields({
|
|
|
|
|
- @ExcelField(title="工件码", attrName="sn", align= ExcelField.Align.CENTER, sort=10),
|
|
|
|
|
- @ExcelField(title="工位号", attrName="oprno", align= ExcelField.Align.CENTER, sort=20),
|
|
|
|
|
- @ExcelField(title="测试类型", attrName="testType", align= ExcelField.Align.CENTER, sort=30),
|
|
|
|
|
- @ExcelField(title="测试结果", attrName="testResult", align= ExcelField.Align.CENTER, sort=40),
|
|
|
|
|
- @ExcelField(title="测试状态", attrName="testState", align= ExcelField.Align.CENTER, sort=50),
|
|
|
|
|
- @ExcelField(title="测试电压", attrName="voltage", align= ExcelField.Align.CENTER, sort=60),
|
|
|
|
|
- @ExcelField(title="测试电阻/测试电流", attrName="resOrCur", align= ExcelField.Align.CENTER, sort=70),
|
|
|
|
|
- @ExcelField(title="测试时间/斜坡时间", attrName="testTime", align= ExcelField.Align.CENTER, sort=80),
|
|
|
|
|
- @ExcelField(title="记录时间", attrName="recordTime", align= ExcelField.Align.CENTER, sort=90),
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ private String step; // 步骤
|
|
|
|
|
+ private String voltage; // 电压
|
|
|
|
|
+ private String voltageUnit; // 电压单位
|
|
|
|
|
+ private String data; // 测试数据
|
|
|
|
|
+ private String dataUnit; // 测试数据单位
|
|
|
|
|
+ private String result; // 测试结果
|
|
|
|
|
|
|
|
public MesProductInsulation2() {
|
|
public MesProductInsulation2() {
|
|
|
this(null);
|
|
this(null);
|
|
@@ -75,43 +57,16 @@ public class MesProductInsulation2 extends DataEntity<MesProductInsulation2> {
|
|
|
this.sn = sn;
|
|
this.sn = sn;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Size(min=0, max=25, message="工位号长度不能超过 25 个字符")
|
|
|
|
|
- public String getOprno() {
|
|
|
|
|
- return oprno;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setOprno(String oprno) {
|
|
|
|
|
- this.oprno = oprno;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Size(min=0, max=255, message="测试类型长度不能超过 255 个字符")
|
|
|
|
|
- public String getTestType() {
|
|
|
|
|
- return testType;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setTestType(String testType) {
|
|
|
|
|
- this.testType = testType;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Size(min=0, max=64, message="测试结果长度不能超过 64 个字符")
|
|
|
|
|
- public String getTestResult() {
|
|
|
|
|
- return testResult;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setTestResult(String testResult) {
|
|
|
|
|
- this.testResult = testResult;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Size(min=0, max=64, message="测试状态长度不能超过 64 个字符")
|
|
|
|
|
- public String getTestState() {
|
|
|
|
|
- return testState;
|
|
|
|
|
|
|
+ @Size(min=0, max=10, message="步骤长度不能超过 10 个字符")
|
|
|
|
|
+ public String getStep() {
|
|
|
|
|
+ return step;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setTestState(String testState) {
|
|
|
|
|
- this.testState = testState;
|
|
|
|
|
|
|
+ public void setStep(String step) {
|
|
|
|
|
+ this.step = step;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Size(min=0, max=255, message="测试电压长度不能超过 255 个字符")
|
|
|
|
|
|
|
+ @Size(min=0, max=20, message="电压长度不能超过 20 个字符")
|
|
|
public String getVoltage() {
|
|
public String getVoltage() {
|
|
|
return voltage;
|
|
return voltage;
|
|
|
}
|
|
}
|
|
@@ -120,47 +75,56 @@ public class MesProductInsulation2 extends DataEntity<MesProductInsulation2> {
|
|
|
this.voltage = voltage;
|
|
this.voltage = voltage;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Size(min=0, max=255, message="测试电阻/电流长度不能超过 255 个字符")
|
|
|
|
|
- public String getResOrCur() {
|
|
|
|
|
- return resOrCur;
|
|
|
|
|
|
|
+ @Size(min=0, max=10, message="电压单位长度不能超过 10 个字符")
|
|
|
|
|
+ public String getVoltageUnit() {
|
|
|
|
|
+ return voltageUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setVoltageUnit(String voltageUnit) {
|
|
|
|
|
+ this.voltageUnit = voltageUnit;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Size(min=0, max=20, message="测试数据长度不能超过 20 个字符")
|
|
|
|
|
+ public String getData() {
|
|
|
|
|
+ return data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setResOrCur(String resOrCur) {
|
|
|
|
|
- this.resOrCur = resOrCur;
|
|
|
|
|
|
|
+ public void setData(String data) {
|
|
|
|
|
+ this.data = data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Size(min=0, max=128, message="测试时间长度不能超过 128 个字符")
|
|
|
|
|
- public String getTestTime() {
|
|
|
|
|
- return testTime;
|
|
|
|
|
|
|
+ @Size(min=0, max=10, message="测试数据单位长度不能超过 10 个字符")
|
|
|
|
|
+ public String getDataUnit() {
|
|
|
|
|
+ return dataUnit;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setTestTime(String testTime) {
|
|
|
|
|
- this.testTime = testTime;
|
|
|
|
|
|
|
+ public void setDataUnit(String dataUnit) {
|
|
|
|
|
+ this.dataUnit = dataUnit;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
- public Date getRecordTime() {
|
|
|
|
|
- return recordTime;
|
|
|
|
|
|
|
+ @Size(min=0, max=10, message="测试结果长度不能超过 10 个字符")
|
|
|
|
|
+ public String getResult() {
|
|
|
|
|
+ return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setRecordTime(Date recordTime) {
|
|
|
|
|
- this.recordTime = recordTime;
|
|
|
|
|
|
|
+ public void setResult(String result) {
|
|
|
|
|
+ this.result = result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Date getRecordTime_gte() {
|
|
|
|
|
- return sqlMap.getWhere().getValue("record_time", QueryType.GTE);
|
|
|
|
|
|
|
+ public Date getUpdateDate_gte() {
|
|
|
|
|
+ return sqlMap.getWhere().getValue("update_date", QueryType.GTE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setRecordTime_gte(Date recordTime) {
|
|
|
|
|
- sqlMap.getWhere().and("record_time", QueryType.GTE, recordTime);
|
|
|
|
|
|
|
+ public void setUpdateDate_gte(Date updateDate) {
|
|
|
|
|
+ sqlMap.getWhere().and("update_date", QueryType.GTE, updateDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Date getRecordTime_lte() {
|
|
|
|
|
- return sqlMap.getWhere().getValue("record_time", QueryType.LTE);
|
|
|
|
|
|
|
+ public Date getUpdateDate_lte() {
|
|
|
|
|
+ return sqlMap.getWhere().getValue("update_date", QueryType.LTE);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void setRecordTime_lte(Date recordTime) {
|
|
|
|
|
- sqlMap.getWhere().and("record_time", QueryType.LTE, recordTime);
|
|
|
|
|
|
|
+ public void setUpdateDate_lte(Date updateDate) {
|
|
|
|
|
+ sqlMap.getWhere().and("update_date", QueryType.LTE, updateDate);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|