自动化立体仓库 - WMS系统
zyx
2024-07-11 6298f178c71f1eb95d4066ffe88d4becd6fc6bfc
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package com.zy.asrs.entity.param;
 
import lombok.Data;
 
import java.util.List;
 
@Data
public class MesOrderReportParam {
    //编码
    private String code;
    //备注
    private String remark;
    private List<TransferOrderItem> transferOrderItems;
    private RecordCustomFieldBaseCO recordCustomFieldBaseCO;
 
    @Data
    public static class RecordCustomFieldBaseCO{
        private List<CustomField> customFields;
 
        @Data
        public static class CustomField{
            private String fieldCode;
            private String fieldValue;
 
            public CustomField(String fieldCode, String fieldValue) {
                this.fieldCode = fieldCode;
                this.fieldValue = fieldValue;
            }
        }
    }
 
    @Data
    public static class TransferOrderItem{
 
        //行备注 单据号
        private String remark;
        //接收仓位
        private String targetLocationCode;
 
        private List<InventoryDetail> inventoryDetails;
 
 
        @Data
        public static class InventoryDetail{
            private Amount amount;
            private BizKey bizKey;
            //发出仓位
            private String locationCode;
            //物料编码
            private String materialCode;
            //质量状态
            private Integer qcStatus;
            //仓储状态
            private Integer storageStatus;
            //版本号,默认为null
            private String version;
 
            @Data
            public static class Amount{
                //数量
                private Double amount;
                //单位编码
                private String unitCode;
                //单位名称 二选一
                private String unitName;
 
                public Amount(Double amount, String unitName, String unitCode) {
                    this.amount = amount;
                    this.unitCode = unitCode;
                    this.unitName = unitName;
                }
            }
 
            @Data
            public static class BizKey{
                //批次
                private String batchNo;
 
                public BizKey(String batchNo) {
                    this.batchNo = batchNo;
                }
            }
        }
 
    }
}