package com.ld.igds.inout.dto;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.ld.igds.models.InoutConf;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 出入库流程过程中,车牌失败,读卡器等设备的公共参数和传递对象
|
*/
|
@Data
|
public class ApiInoutData implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
private String id;
|
|
private String companyId;
|
|
private String deptId;
|
|
@PropertyDef(label = "出入库配套序号")
|
private String sort = "1";
|
|
@PropertyDef(label = "设备名称")
|
private String name;
|
|
@PropertyDef(label = "设备序列号/设备编码")
|
private String sn;
|
|
private String ip;
|
|
private Integer port;
|
|
@PropertyDef(label = "帐号")
|
private String loginId;
|
|
@PropertyDef(label = "密码")
|
private String pwd;
|
|
@PropertyDef(label = "通道号")
|
private int chanNum = 1;
|
|
@PropertyDef(label = "控制端口")
|
private Integer portCtrl;
|
|
@PropertyDef(label = "设备类型")
|
private String type;
|
|
@PropertyDef(label = "是否在线")
|
private String status;
|
|
@PropertyDef(label = "分机协议", description = "不同厂商有不同的协议")
|
private String protocol;
|
|
@PropertyDef(label = "播放方式")
|
private String playType;
|
|
@PropertyDef(label = "抓拍方式")
|
private String snapType;
|
|
@PropertyDef(label = "本地播放地址")
|
private String mediaAddr;
|
|
private String errorMsg;
|
|
// 车牌号
|
private String plateNum;
|
// 用户Id
|
private String userId;
|
|
private Date time = new Date();
|
|
//信息
|
private String msg;
|
|
//信息播放次数
|
private int repeat = 1;
|
|
//智慧卡号
|
private String icCardNo;
|
|
//称重信息
|
private double weight = 0.0;
|
|
//动作编码:0=关闭/红灯,1=打开/路灯
|
private String actionCode;
|
|
//动作编码,设备编号
|
private String deviceId;
|
|
|
public ApiInoutData() {
|
super();
|
}
|
|
public ApiInoutData(InoutConf conf) {
|
this.id = conf.getId();
|
this.companyId = conf.getCompanyId();
|
this.deptId = conf.getDeptId();
|
this.sort = conf.getSort();
|
this.name = conf.getName();
|
this.sn = conf.getSn();
|
this.ip = conf.getIp();
|
this.port = conf.getPort();
|
this.loginId = conf.getLoginId();
|
this.pwd = conf.getPwd();
|
this.chanNum = conf.getChanNum();
|
this.portCtrl = conf.getPortCtrl();
|
this.type = conf.getType();
|
this.status = conf.getStatus();
|
this.protocol = conf.getProtocol();
|
this.playType = conf.getPlayType();
|
this.snapType = conf.getSnapType();
|
this.mediaAddr = conf.getMediaAddr();
|
this.errorMsg = conf.getErrorMsg();
|
}
|
}
|