自动化立体仓库 - WMS系统
#
whycq
2025-01-04 207823b94f5627fae49d29b51b5ce7186a70c8e0
src/main/java/com/zy/common/model/LocDto.java
@@ -1,5 +1,7 @@
package com.zy.common.model;
import com.core.common.Cools;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.List;
@@ -19,12 +21,21 @@
    private String batch;
    private String orderNo;
    private String manu;
    //实际出库量
    private Double anfme;
    private int owner;
    private int payment;
    //所需出库量
    private Double needQty;
    private boolean lack = false;
    private List<Integer> staNos;
    private Integer staNo;
    public LocDto() {
    }
@@ -44,17 +55,36 @@
        this.anfme = anfme;
    }
    public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) {
    public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme,int owner ,int payment) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.owner = owner;
        this.payment = payment;
    }
    public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme, Double needQty) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.needQty = needQty;
    }
    public String getTitle() {
        return this.matnr + "(" + this.maktx + ")";
    }
    public void setStaNos(List<Integer> staNos) {
        this.staNos = staNos;
        if (!Cools.isEmpty(staNos)) {
            this.staNo = staNos.get(0);
        }
    }
}