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