package com.fzzy.s.domain; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 网关管理 * */ @Data @Entity @Table(name = "B_GATEWAY") public class Gateway implements Serializable { private static final long serialVersionUID = 1L; @Id @PropertyDef(label = "系统ID") @Column(name = "ID_", length = 40) private String id; @PropertyDef(label = "组织编号") @Column(name = "COMPANY_ID_", length = 10) private String companyId; @PropertyDef(label = "设备序列号", description = "该序列号,在设备登录的时对比使用,如果相同运行登录,如果不同,不支持登录") @Column(name = "SERIAL_NUM_", length = 50) private String serialNum; @PropertyDef(label = "物联网卡号", description = "物联网卡号,如有") @Column(name = "ICCID_", length = 50) private String iccid; @PropertyDef(label = "类型", description = "类型,如动环,粮库") @Column(name = "TYPE_", length = 50) private String type; @PropertyDef(label = "协议类型", description = "字典表:如MEGA_RPC,MEGA_NETTY") @Column(name = "PROTOCOL_", length = 30) private String protocol; @PropertyDef(label = "上线时间") @Column(name = "LOGIN_TIME_") private Date loginTime; @PropertyDef(label = "注册时间") @Column(name = "REG_TIME_") private Date regTime; @PropertyDef(label = "授权截止时间") @Column(name = "AUTH_TIME_") private Date AuthTime; @PropertyDef(label = "组织名称") @Transient private String companyName; public String getCompanyName(){ return companyId; } }