jiazx0107@163.com
2023-05-26 6f4a366cad9109ddc338fd13c9d43ca2ce516f6b
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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;
 
}