package com.zy.asrs.entity.param;
|
|
import com.core.common.DateUtils;
|
import com.zy.asrs.entity.WrkDetl;
|
import com.zy.asrs.entity.WrkMast;
|
import lombok.Data;
|
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* Created by vincent on 2020/6/28
|
*/
|
@Data
|
public class BalconyWrkMastParam {
|
|
private Integer balcony;// 字符串 月台
|
private String boxType;// 是 字符串 木箱类型
|
private String uuid;// 字符串 时间戳
|
private String createTime;// 字符串 创建时间yyyy-MM-dd HH:mm:ss
|
|
private List<MatList> matLists;// 是 列表 拆垛货物信息(2箱,尾箱可能1箱)
|
|
@Data
|
public static class MatList{
|
private String matnr;// 是 字符串 物料编码
|
private String maktx;// 字符串 物料名称
|
private String boxNo;// 是 字符串 木箱编号(唯一字段,出库依据,出库时按照木箱编号出库)
|
private String position;// 是 字符串 木箱位置(拆垛时需要)
|
private Double weight;// 是 小数型 重量
|
private Integer anfme;// 数字型 木箱中铜箔数量
|
private String batch;// 字符串 批次号
|
private String specs;// 字符串 规格
|
private List<MatDetlList> matDetlList;// 是 列表 木箱中铜箔信息
|
}
|
|
@Data
|
public static class MatDetlList{
|
private String boxNoDetl;// 是 字符串 铜箔编号(唯一字段)
|
private String positionDetl;// 是 字符串 铜箔位置(拆垛时需要)
|
private Double weightDetl;// 是 小数型 重量
|
private String batchDetl;// 字符串 批次号
|
private String specsDetl;// 字符串 规格
|
}
|
|
public BalconyWrkMastParam(){};
|
|
public BalconyWrkMastParam(WrkMast wrkMast, List<WrkDetl> wrkDetls){
|
this.uuid= String.valueOf(System.currentTimeMillis());
|
this.createTime = DateUtils.convert(new Date());
|
for (WrkDetl wrkDetl : wrkDetls){
|
this.boxType = wrkDetl.getBrand();
|
MatList matList = new MatList();
|
matList.setMatnr(wrkDetl.getMatnr());
|
matList.setMaktx(wrkDetl.getMaktx());
|
matList.setBoxNo(wrkDetl.getBatch());
|
matList.setPosition(wrkDetl.getOrigin());
|
matList.setWeight(wrkDetl.getWeight());
|
matList.setAnfme(wrkDetl.getAnfme().intValue());
|
matList.setSpecs(wrkDetl.getSpecs());
|
matList.setBatch(wrkDetl.getModel());
|
this.matLists.add(matList);
|
}
|
};
|
|
}
|