自动化立体仓库 - WMS系统
lty
3 天以前 d907a822a940c7ec0fb7de0ca845472bda52229b
src/main/java/com/zy/common/model/LocDto.java
@@ -1,5 +1,6 @@
package com.zy.common.model;
import com.core.common.Cools;
import lombok.Data;
import java.util.List;
@@ -25,6 +26,10 @@
    private boolean lack = false;
    private List<Integer> staNos;
    private Integer staNo;
    private String barcode;
    public LocDto() {
    }
@@ -52,14 +57,45 @@
        this.orderNo = orderNo;
        this.anfme = anfme;
    }
    public LocDto(String locNo, String matnr, String batch, Double anfme,String barcode) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.batch = batch;
        this.anfme = anfme;
        this.barcode = barcode;
    }
    public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme,String barcode) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.barcode = barcode;
    }
    public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme,String barcode) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.barcode = barcode;
    }
    public String getTitle() {
        return this.matnr + "(" + this.maktx + ")";
    }
    public void setLack(boolean lack) {
        this.lack = lack;
        this.locNo = "缺货";
    public void setStaNos(List<Integer> staNos) {
        this.staNos = staNos;
        if (!Cools.isEmpty(staNos)) {
            this.staNo = staNos.get(0);
        }
    }
}