czt
2025-06-12 930d29f39d115fe76c305af4320c2acbcb30c445
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
package com.ld.igds.io.dto;
 
import com.ld.igds.inout.InoutConstant;
import com.ld.igds.models.InoutConf;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * 地磅基信息
 *
 * 2023年5月31日 13:57:15  取消舍弃使用,改用InoutConf对象和ApiInoutData
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:2020年3月18日
 */
@Data
public class WeightDto implements Serializable {
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    private String sort = "1";
 
    private String sn;
 
    private String companyId;
 
    private String ip = "192.168.1.1";
 
    private String name;// 地磅名称
 
    private int port;
 
    private String protocol;// 地磅使用的的协议
 
    private String status = "0";// 状态,当数据连续5S后不变后,状态为正常 0=稳定,1=不稳定
 
    private double weight;// 重量信息
 
    private String symbol = "";// 符号
 
    private String macStatus = InoutConstant.MAC_STATUS_NONE;
 
    private String bizType;
 
 
    public WeightDto() {
        super();
    }
 
    public WeightDto(InoutConf conf) {
        if (conf == null) return;
        this.sort = conf.getSort();
        this.sn = conf.getSn();
        this.companyId = conf.getCompanyId();
        this.ip = conf.getIp();
        this.name = conf.getName();
        this.port = conf.getPort();
        this.protocol = conf.getProtocol();
        this.status = conf.getStatus();
    }
}