自动化立体仓库 - WCS系统
#
Junjie
2025-01-14 0143cc146be484ab3f41e15ec2fc4dab21ebc65f
src/main/java/com/zy/common/model/MatDto.java
@@ -1,6 +1,5 @@
package com.zy.common.model;
import com.zy.asrs.entity.OrderDetl;
import lombok.Data;
/**
@@ -10,10 +9,25 @@
public class MatDto {
    // 物料编号
    private String matnr;
    private String matNo;
    // 物料名称
    private String maknx;
    // 库位规格
    private String specs;
    // 物料数量
    private Double count;
    // 库位数量
    private Double total;
    // 物料名称
    private String model;
    // 箱码
    private String containerCode;
    // 条码
    private String batch;
@@ -21,21 +35,42 @@
    // 订单编号
    private String orderNo;
    // 已出
    private Double count;
    // 总数量
    private Double total;
    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() + orderDetl.getWeight();
        this.total = orderDetl.getAnfme();
    public MatDto(String matNo, String maknx, Double count) {
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
    }
    public MatDto(String matNo, String maknx, Double count,String specs) {
        this.specs = specs;
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
    }
    public MatDto(String matNo, String maknx, Double count,Double total,String specs) {
        this.specs = specs;
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
        this.total = total;
    }
    public MatDto(String matNo, String maknx, Double count,Double total,String specs,String containerCode) {
        this.containerCode = containerCode;
        this.specs = specs;
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
        this.total = total;
    }
    public MatDto(String matNo, String maknx, Double count,Double total,String specs,String containerCode,String orderNo) {
        this.containerCode = containerCode;
        this.specs = specs;
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
        this.total = total;
        this.orderNo = orderNo;
    }
}