vince
2024-10-15 54eff445eaf9d82f3d40e8ec486668f2b277a952
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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;
    }
    
}