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(); } }