|
|
@@ -24,7 +24,6 @@ import java.util.List;
|
|
|
@Column(name="oprno", attrName="oprno", label="工位"),
|
|
|
@Column(name="type", attrName="type", label="类型"),
|
|
|
@Column(name="result", attrName="result", label="检查结果"),
|
|
|
- @Column(name="standard_value", attrName="standardValue", label="标准值"),
|
|
|
@Column(name="line_sn", attrName="lineSn", label="产线编号"),
|
|
|
@Column(name="items", attrName="items", label="问题清单"),
|
|
|
@Column(name="remark", attrName="remark", label="备注"),
|
|
|
@@ -35,7 +34,7 @@ import java.util.List;
|
|
|
}, orderBy="a.update_date DESC"
|
|
|
)
|
|
|
public class MesQuality extends DataEntity<MesQuality> {
|
|
|
-
|
|
|
+
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
private String sn; // 工件号
|
|
|
private String oprno; // 工位
|
|
|
@@ -62,11 +61,11 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public MesQuality() {
|
|
|
this(null);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public MesQuality(String id){
|
|
|
super(id);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@NotBlank(message="工件号不能为空")
|
|
|
@Size(min=0, max=50, message="工件号长度不能超过 50 个字符")
|
|
|
public String getSn() {
|
|
|
@@ -76,17 +75,18 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setSn(String sn) {
|
|
|
this.sn = sn;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@NotBlank(message="工位不能为空")
|
|
|
@Size(min=0, max=20, message="工位长度不能超过 20 个字符")
|
|
|
public String getOprno() {
|
|
|
return oprno;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public void setOprno(String oprno) {
|
|
|
this.oprno = oprno;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@NotBlank(message="类型不能为空")
|
|
|
@Size(min=0, max=1, message="类型长度不能超过 1 个字符")
|
|
|
public String getType() {
|
|
|
@@ -96,7 +96,7 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setType(String type) {
|
|
|
this.type = type;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@NotBlank(message="检查结果不能为空")
|
|
|
@Size(min=0, max=255, message="检查结果长度不能超过 255 个字符")
|
|
|
public String getResult() {
|
|
|
@@ -115,7 +115,7 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setItems(String items) {
|
|
|
this.items = items;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@Size(min=0, max=255, message="备注长度不能超过 255 个字符")
|
|
|
public String getRemark() {
|
|
|
return remark;
|
|
|
@@ -124,7 +124,7 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setRemark(String remark) {
|
|
|
this.remark = remark;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public Date getUpdateDate_gte() {
|
|
|
return sqlMap.getWhere().getValue("update_date", QueryType.GTE);
|
|
|
}
|
|
|
@@ -132,7 +132,7 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setUpdateDate_gte(Date updateDate) {
|
|
|
sqlMap.getWhere().and("update_date", QueryType.GTE, updateDate);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public Date getUpdateDate_lte() {
|
|
|
return sqlMap.getWhere().getValue("update_date", QueryType.LTE);
|
|
|
}
|
|
|
@@ -164,4 +164,4 @@ public class MesQuality extends DataEntity<MesQuality> {
|
|
|
public void setImgs(List<FileUpload> imgs) {
|
|
|
this.imgs = imgs;
|
|
|
}
|
|
|
-}
|
|
|
+}
|