|
|
@@ -21,6 +21,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
@Column(name="sn", attrName="sn", label="订单编号"),
|
|
|
@Column(name="line_sn", attrName="lineSn", label="产线编号"),
|
|
|
@Column(name="nums", attrName="nums", label="生产数量", isUpdateForce=true),
|
|
|
+ @Column(name="now_num", attrName="nowNums", label="当前生产入库数量", isUpdateForce=true),
|
|
|
@Column(name="delivery_date", attrName="deliveryDate", label="交货日期", isUpdateForce=true),
|
|
|
@Column(name="remark", attrName="remark", label="备注"),
|
|
|
@Column(name="state", attrName="state", label="状态 0=草稿 1=下发 2=完成"),
|
|
|
@@ -32,11 +33,12 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
}, orderBy="a.update_date DESC"
|
|
|
)
|
|
|
public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
-
|
|
|
+
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
private String sn; // 订单编号
|
|
|
private String lineSn; // 产线编号
|
|
|
private Integer nums; // 生产数量
|
|
|
+ private Integer nowNums; // 当前生产入库数量
|
|
|
private Date deliveryDate; // 交货日期
|
|
|
private String remark; // 备注
|
|
|
private String state; // 状态 0=草稿 1=下发 2=完成
|
|
|
@@ -44,11 +46,11 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public MesProductOrder() {
|
|
|
this(null);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public MesProductOrder(String id){
|
|
|
super(id);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@Size(min=0, max=64, message="订单编号长度不能超过 64 个字符")
|
|
|
public String getSn() {
|
|
|
return sn;
|
|
|
@@ -66,7 +68,7 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public void setLineSn(String lineSn) {
|
|
|
this.lineSn = lineSn;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public Integer getNums() {
|
|
|
return nums;
|
|
|
}
|
|
|
@@ -74,7 +76,7 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public void setNums(Integer nums) {
|
|
|
this.nums = nums;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
public Date getDeliveryDate() {
|
|
|
return deliveryDate;
|
|
|
@@ -83,7 +85,7 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public void setDeliveryDate(Date deliveryDate) {
|
|
|
this.deliveryDate = deliveryDate;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@Size(min=0, max=255, message="备注长度不能超过 255 个字符")
|
|
|
public String getRemark() {
|
|
|
return remark;
|
|
|
@@ -92,7 +94,7 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public void setRemark(String remark) {
|
|
|
this.remark = remark;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
@Size(min=0, max=1, message="状态 0=草稿 1=下发 2=完成长度不能超过 1 个字符")
|
|
|
public String getState() {
|
|
|
return state;
|
|
|
@@ -101,5 +103,12 @@ public class MesProductOrder extends DataEntity<MesProductOrder> {
|
|
|
public void setState(String state) {
|
|
|
this.state = state;
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
+
|
|
|
+ public Integer getNowNums() {
|
|
|
+ return nowNums;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNowNums(Integer nowNums) {
|
|
|
+ this.nowNums = nowNums;
|
|
|
+ }
|
|
|
+}
|