自动化立体仓库 - WMS系统
pang.jiabao
2024-09-03 587fee18e22ed0ceee502ca12025a40e9d63989f
src/main/java/com/zy/common/model/LocDto.java
@@ -1,6 +1,7 @@
package com.zy.common.model;
import com.core.common.Cools;
import com.zy.asrs.entity.LocDetl;
import lombok.Data;
import java.util.List;
@@ -12,22 +13,39 @@
public class LocDto {
    private String locNo;
    private Long orderDetlId;
    private String matnr;
    private String maktx;
    private String model;
    //规格
    private String specs;
    private String batch;
    //木箱类型
    private String brand;
    //托盘码
    private String zpallet;
    private String orderNo;
    private String origin;
    private Double anfme;
    private Double count;
    private Double weight;
    private Double volume;
    private Double price;
    private boolean lack = false;
    private List<Integer> staNos;
    private Integer staNo;
    private Integer tkType;
    public LocDto() {
    }
@@ -37,6 +55,8 @@
        this.matnr = matnr;
        this.batch = batch;
        this.anfme = anfme;
        this.count = anfme;
    }
    public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme) {
@@ -45,6 +65,8 @@
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.count = anfme;
    }
    public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) {
@@ -54,6 +76,39 @@
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.count = anfme;
    }
    public LocDto(String locNo, String matnr, String maktx,String model,String specs, String batch,String brand,String zpallet, String orderNo, Double anfme) {
        this.locNo = locNo;
        this.matnr = matnr;
        this.maktx = maktx;
        this.batch = batch;
        this.orderNo = orderNo;
        this.anfme = anfme;
        this.count = anfme;
        this.model = model;
        this.specs = specs;
        this.brand = brand;
        this.zpallet = zpallet;
    }
    public LocDto(LocDetl locDetl) {
        this.locNo = locDetl.getLocNo();
        this.matnr = locDetl.getMatnr();
        this.maktx = locDetl.getMaktx();
        this.batch = locDetl.getBatch();
        this.orderNo = locDetl.getOrderNo();
        this.anfme = locDetl.getAnfme();
        this.count = locDetl.getAnfme();
        this.model = locDetl.getModel();
        this.specs = locDetl.getSpecs();
        this.brand = locDetl.getBrand();
        this.zpallet = locDetl.getZpallet();
        this.weight = locDetl.getWeight();
        this.volume = locDetl.getVolume();
        this.price = locDetl.getPrice();
        this.origin = locDetl.getOrigin();
    }
    public String getTitle() {
@@ -67,4 +122,17 @@
        }
    }
    public void setAnfme(Double anfme){
        this.anfme=anfme;
        this.count=anfme;
    }
    public String getTkType$(){
        if (null == this.tkType) return "正常";
        if (this.tkType == 1) {
            return "退库";
        }
        return "正常";
    }
}