jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
package com.ld.igds.io.sample.data;
 
import com.ld.igds.inout.InoutConstant;
import com.ld.igds.models.DeviceSer;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * 扦样机对象信息
 * <p>
 * 请求信息和响应信息放在同一个对象
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2020年3月23日
 */
@Data
public class SampleDto implements Serializable {
 
    public static final String TYPE_SMALL = "small";// 小车
    public static final String TYPE_BIG = "big";// 大车
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    private String sn;
 
    private String companyId;
 
    private String ip = "192.168.1.1";
 
    private String name;
 
    private int port;
 
    private String protocol;// 使用的的协议
 
    private String type = TYPE_SMALL;// 默认表示小车,big = 大车
 
    private String macStatus = InoutConstant.MAC_STATUS_NONE;
 
    private String checkId;//化验ID
 
    private String recordId;//数据ID
 
    private String progress;//当前流程
 
 
    /**
     * 格式:yyyy-MM-dd
     */
    private String checkDay;
 
 
    public SampleDto() {
        super();
    }
 
    public SampleDto(DeviceSer deviceSer) {
        if(deviceSer == null){
            return;
        }
        this.sn = deviceSer.getSn();
        this.companyId = deviceSer.getCompanyId();
        this.ip = deviceSer.getIp();
        this.name = deviceSer.getName();
        this.port = deviceSer.getPort();
        this.protocol = deviceSer.getProtocol();
    }
}