package com.ld.igds.models; import com.bstek.dorado.annotation.PropertyDef; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; import com.ld.igds.constant.Constant; import com.ld.igds.constant.ControlModel; import com.ld.igds.constant.DeviceSerType; import lombok.Data; /** * 分机设备操作,用于配置分机服务 * * 升级记录: 1,删除无用字段 * * @author Andy * */ @Data @Entity @Table(name = "D_DEVICE_SER") public class DeviceSer implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 40) @PropertyDef(label = "ID") private String id; @Id @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码") private String companyId; @Column(name = "SN_", length = 40) @PropertyDef(label = "序列号",description = "设备序列号,用于唯一检索") private String sn; @Column(name = "NAME_", length = 50) @PropertyDef(label = "分机名称") private String name; @Column(name = "IP_", length = 20) @PropertyDef(label = "分机IP") private String ip; @Column(name = "PORT_") @PropertyDef(label = "分机端口") private Integer port; @Column(name = "TYPE_", length = 10) @PropertyDef(label = "分机类型") private String type = DeviceSerType.TYPE_01.getCode(); @Column(name = "STATUS_", length = 10) @PropertyDef(label = "是否在线", description = "Y表示在线,N表示断开") private String status = "N"; @Column(name = "CONTROL_MODEL_", length = 10) @PropertyDef(label = "操作模式", description = "操作模式=远程或者本地") private String controlModel = ControlModel.MODEL_01.getCode(); @Column(name = "NETWORK_TYPE_", length = 2) @PropertyDef(label = "网络模式") private String networkType = Constant.NETWORK_01; @Column(name = "PROTOCOL_", length = 40) @PropertyDef(label = "分机协议", description = "不同厂商有不同的协议") private String protocol; @Column(name = "PRODUCER_", length = 80) @PropertyDef(label = "厂商信息") private String producer; @Column(name = "UPDATE_USER_", length = 50) @PropertyDef(label = "更新人") private String updateUser; @Column(name = "REMARK_", length = 200) @PropertyDef(label = "备注", description = "备注信息") private String remark; @Column(name = "UPDATE_TIME_") @PropertyDef(label = "更新时间", description = "最后更新时间") private Date updateTime; @Column(name = "ERROR_MSG_", length = 200) @PropertyDef(label = "异常信息") private String errorMsg; //-------------------------------扩展字段--------------------// @Column(name = "CONTACT_PHONE_", length = 20) @PropertyDef(label = "厂商联系电话") private String contactPhone; @Column(name = "POWER_MODEL", length = 2) @PropertyDef(label = "供电方式") private String powerModel = Constant.NETWORK_01; @Column(name = "CABLE_START_") @PropertyDef(label = "开始列") private int cableStart = 1; @Column(name = "CABLE_Z_") @PropertyDef(label = "层配置") private int cableZ = 0; @Column(name = "CABLE_Y_") @PropertyDef(label = "行配置") private int cableY = 0; @Column(name = "CABLE_X_") @PropertyDef(label = "列配置") private int cableX = 0; @Column(name = "CABLE_TYPE_") @PropertyDef(label = "电缆类型") private String cableType; @Column(name = "CABLE_FORMAT_") @PropertyDef(label = "电缆制式") private String cableFormat; @Column(name = "ORG_ID_") @PropertyDef(label = "组织编号", description = "2021年6月9日 16:22:57,不在作为业务参数使用,只用于底层传输") private String orgId; }