|
|
@@ -35,6 +35,7 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
private String sn; // 工件码
|
|
|
+ private String snLike; // 工件码模糊查询
|
|
|
private String oprno; // 工位号
|
|
|
private String lineSn; // 产线编号
|
|
|
private String remark; // 备注
|
|
|
@@ -66,6 +67,17 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
public void setSn(String sn) {
|
|
|
this.sn = sn;
|
|
|
}
|
|
|
+
|
|
|
+ public String getSnLike() {
|
|
|
+ return snLike;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSnLike(String snLike) {
|
|
|
+ this.snLike = snLike;
|
|
|
+ if (org.apache.commons.lang3.StringUtils.isNotBlank(snLike)) {
|
|
|
+ sqlMap.getWhere().and("sn", QueryType.LIKE, snLike);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
@Size(min=0, max=20, message="工位号长度不能超过 20 个字符")
|
|
|
public String getOprno() {
|
|
|
@@ -117,4 +129,4 @@ public class MesProductGp12 extends DataEntity<MesProductGp12> {
|
|
|
public void setImg(List img) {
|
|
|
this.img = img;
|
|
|
}
|
|
|
-}
|
|
|
+}
|