自动化立体仓库 - WCS系统
#
zjj
2024-01-30 f417e368a7a68c693a30b16329fb3533a0c84183
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
package com.zy.core.model.command;
 
import com.core.common.Cools;
import com.zy.common.model.MatDto;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * led命令报文
 * Created by vincent on 2020/8/11
 */
@Data
public class LedCommand extends Object {
 
    private String title;
 
    private Integer workNo;
 
    private Integer staNo;
 
    private Integer sourceStaNo;
 
    private String locNo;
 
    private String sourceLocNo;
 
    private List<MatDto> matDtos = new ArrayList<>();
 
    private boolean emptyMk = false;
 
    private Integer ioType;
    private String barcode;
 
    @Override
    public String toString() {
        StringBuffer s = new StringBuffer();
        s.append("工作号[" + this.workNo + "]\n");
        s.append("工作类型[" + this.title + "]\n");
        if (!Cools.isEmpty(this.barcode)) {
            s.append("托盘码[" + this.barcode + "]\n");
        }
        if (!this.emptyMk){
 
            for (MatDto matDto : matDtos) {
                s.append("[商品编码:" + matDto.getMatnr() + ", 数量:" + matDto.getCount() + "]\n");
            }
        }
 
        return s.toString();
    }
}