自动化立体仓库 - WCS系统
#
Junjie
2023-09-15 1da55d544dffc8d8b2e88efb4532776e71b0b11c
src/main/java/com/zy/common/model/MatDto.java
@@ -1,5 +1,6 @@
package com.zy.common.model;
import com.zy.asrs.entity.OrderDetl;
import lombok.Data;
/**
@@ -9,20 +10,56 @@
public class MatDto {
    // 物料编号
    private String matNo;
    private String matnr;
    // 物料名称
    private String maknx;
    // 库位规格
    private String specs;
    // 物料数量
    private Double count;
    // 库位数量
    private Double total;
    // 物料名称
    private String model;
    // 条码
    private String batch;
    // 订单编号
    private String orderNo;
    public MatDto() {
    }
    public MatDto(OrderDetl orderDetl) {
        this.matnr = orderDetl.getMatnr();
        this.model = orderDetl.getModel();
        this.batch = orderDetl.getBatch();
        this.orderNo = orderDetl.getOrderNo();
        this.count = orderDetl.getQty();
        this.total = orderDetl.getAnfme();
    }
    public MatDto(String matNo, String maknx, Double count) {
        this.matNo = matNo;
        this.matnr = matNo;
        this.maknx = maknx;
        this.count = count;
    }
    public MatDto(String matNo, String maknx, Double count,String specs) {
        this.specs = specs;
        this.matnr = matNo;
        this.maknx = maknx;
        this.count = count;
    }
    public MatDto(String matNo, String maknx, Double count,Double total,String specs) {
        this.specs = specs;
        this.matnr = matNo;
        this.maknx = maknx;
        this.count = count;
        this.total = total;
    }
}