|
@@ -1,7 +1,5 @@
|
|
|
package com.jeesite.modules.mes.entity;
|
|
package com.jeesite.modules.mes.entity;
|
|
|
|
|
|
|
|
-import javax.validation.constraints.Size;
|
|
|
|
|
-
|
|
|
|
|
import com.jeesite.common.collect.ListUtils;
|
|
import com.jeesite.common.collect.ListUtils;
|
|
|
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;
|
|
@@ -11,6 +9,7 @@ import com.jeesite.common.utils.excel.annotation.ExcelField;
|
|
|
import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|
import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
|
|
|
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|
import com.jeesite.common.utils.excel.annotation.ExcelFields;
|
|
|
|
|
|
|
|
|
|
+import javax.validation.constraints.Size;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -25,6 +24,7 @@ import java.util.List;
|
|
|
@Column(name="oprno", attrName="oprno", label="工位号"),
|
|
@Column(name="oprno", attrName="oprno", label="工位号"),
|
|
|
@Column(name="line_sn", attrName="lineSn", label="产线编号"),
|
|
@Column(name="line_sn", attrName="lineSn", label="产线编号"),
|
|
|
@Column(name="remark", attrName="remark", label="备注"),
|
|
@Column(name="remark", attrName="remark", label="备注"),
|
|
|
|
|
+ @Column(name="result", attrName="result", label="结果"),
|
|
|
@Column(name="create_by", attrName="createBy", label="创建人"),
|
|
@Column(name="create_by", attrName="createBy", label="创建人"),
|
|
|
@Column(name="create_date", attrName="createDate", label="创建时间", isUpdateForce=true),
|
|
@Column(name="create_date", attrName="createDate", label="创建时间", isUpdateForce=true),
|
|
|
@Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
|
|
@Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
|
|
@@ -37,6 +37,7 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
private String sn; // 工件码
|
|
private String sn; // 工件码
|
|
|
private String oprno; // 工位号
|
|
private String oprno; // 工位号
|
|
|
private String lineSn; // 产线编号
|
|
private String lineSn; // 产线编号
|
|
|
|
|
+ private String result; // 结果
|
|
|
private String remark; // 备注
|
|
private String remark; // 备注
|
|
|
private List img = ListUtils.newArrayList();//图片
|
|
private List img = ListUtils.newArrayList();//图片
|
|
|
@ExcelFields({
|
|
@ExcelFields({
|
|
@@ -44,6 +45,7 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
@ExcelField(title="工件码", attrName="sn", align=Align.CENTER, sort=20),
|
|
@ExcelField(title="工件码", attrName="sn", align=Align.CENTER, sort=20),
|
|
|
@ExcelField(title="工位号", attrName="oprno", align=Align.CENTER, sort=30),
|
|
@ExcelField(title="工位号", attrName="oprno", align=Align.CENTER, sort=30),
|
|
|
@ExcelField(title="产线编号", attrName="lineSn", align=Align.CENTER, sort=40),
|
|
@ExcelField(title="产线编号", attrName="lineSn", align=Align.CENTER, sort=40),
|
|
|
|
|
+ @ExcelField(title="结果", attrName="result", align=Align.CENTER, sort=40),
|
|
|
@ExcelField(title="备注", attrName="remark", align=Align.CENTER, sort=50),
|
|
@ExcelField(title="备注", attrName="remark", align=Align.CENTER, sort=50),
|
|
|
@ExcelField(title="创建人", attrName="createBy", align=Align.CENTER, sort=60),
|
|
@ExcelField(title="创建人", attrName="createBy", align=Align.CENTER, sort=60),
|
|
|
@ExcelField(title="创建时间", attrName="createDate", align=Align.CENTER, sort=70, dataFormat="yyyy-MM-dd hh:mm"),
|
|
@ExcelField(title="创建时间", attrName="createDate", align=Align.CENTER, sort=70, dataFormat="yyyy-MM-dd hh:mm"),
|
|
@@ -63,6 +65,14 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
return sn;
|
|
return sn;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public String getResult() {
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setResult(String result) {
|
|
|
|
|
+ this.result = result;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void setSn(String sn) {
|
|
public void setSn(String sn) {
|
|
|
this.sn = sn;
|
|
this.sn = sn;
|
|
|
}
|
|
}
|
|
@@ -76,7 +86,7 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
this.oprno = oprno;
|
|
this.oprno = oprno;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Size(min=0, max=2, message="产线编号长度不能超过 2 个字符")
|
|
|
|
|
|
|
+ @Size(min=0, max=10, message="产线编号长度不能超过 103 个字符")
|
|
|
public String getLineSn() {
|
|
public String getLineSn() {
|
|
|
return lineSn;
|
|
return lineSn;
|
|
|
}
|
|
}
|