自动化立体仓库 - WMS系统
#
lsh
4 天以前 642428dd870c2f288bb0f3a5fc94373a69a425cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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);
        }
    };
 
}