#
yxFwq
2025-05-10 3b604eb218a3b167144cc6e5d9c86cd95e16157c
src/main/java/com/zy/common/model/MatDto.java
@@ -1,5 +1,6 @@
package com.zy.common.model;
import com.core.common.Cools;
import com.zy.asrs.entity.WrkDetl;
import lombok.Data;
@@ -11,6 +12,7 @@
    // 物料编号  规格
    private String matNo;
    private String matnr;
    // 物料名称  规格
    private String maknx;
@@ -24,8 +26,15 @@
    //批次
    private String model;
    //卷号
//    private String juanNo;
    private String price;
    private String orderNo;
    // 物料数量
    private Double count;
    private Double weight;
    private Double volume;
    public MatDto() {
    }
@@ -40,12 +49,24 @@
        this.matNo = matNo;
        this.maknx = maknx;
        this.count = count;
        this.specs = specs;
    }
    public MatDto(WrkDetl wrkDetl) {
        this.matNo = wrkDetl.getMatnr();
        this.maknx = wrkDetl.getMaktx();
        this.specs = wrkDetl.getMatnr();
        this.batch = wrkDetl.getBatch();
        this.count = wrkDetl.getAnfme();
        try{
            this.matNo = wrkDetl.getMatnr();
            this.matnr = wrkDetl.getMatnr();
            this.maknx = wrkDetl.getMaktx();
            this.specs = wrkDetl.getSpecs();
            this.batch = wrkDetl.getBatch();
            this.model = wrkDetl.getModel();
            this.price = Cools.isEmpty(wrkDetl.getPrice())? "":wrkDetl.getPrice().toString();
//        this.juanNo = wrkDetl.getSku();
            this.count = wrkDetl.getAnfme();
            this.weight = wrkDetl.getWeight();
            this.volume = wrkDetl.getVolume();
            this.orderNo = wrkDetl.getOrderNo();
        } catch (Exception e){
            System.out.println("异常MatDto68");
        }
    }
}