jiazx0107@163.com
2023-08-24 2884bf1f32b51129a83125ecfc2cf8526f71154f
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
package com.ld.igds.models;
 
import java.io.Serializable;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
 
import lombok.Data;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.Constant;
import com.ld.igds.inout.InoutConstant;
 
/**
 * 气象站配置信息
 *
 * @author Andy
 */
@Data
@Entity
@Table(name = "D_WEATHER_CONF")
public class WeatherConf implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "主键")
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "所属分库")
    private String deptId;
 
 
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "设备名称")
    private String name;
 
    @Column(name = "IP_", length = 40)
    @PropertyDef(label = "IP地址")
    private String ip;
 
    @Column(name = "PORT_")
    @PropertyDef(label = "端口号")
    private Integer port;
 
    @Column(name = "MAC_STATUS_", length = 10)
    @PropertyDef(label = "设备状态")
    private String macStatus = InoutConstant.MAC_STATUS_NONE;
 
    @Column(name = "PROTOCOL_", length = 30)
    @PropertyDef(label = "所属协议")
    private String protocol;
 
//    @Column(name = "URL_",length = 200)
//    @PropertyDef(label = "外网地址")
//    private String url;
 
    @Column(name = "WAN_TAG_", length = 2)
    @PropertyDef(label = "外网气象")
    private String wanTag = Constant.YN_N;
 
    @Column(name = "CITY_", length = 20)
    @PropertyDef(label = "气象城市")
    private String city;
 
    @Column(name = "CITY_ID_", length = 20)
    @PropertyDef(label = "气象城市")
    private String cityId;
 
    @Column(name = "ACCOUNT_", length = 40)
    @PropertyDef(label = "账号")
    private String account;
 
    @Column(name = "PASSWORD_", length = 40)
    @PropertyDef(label = "密码")
    private String password;
 
    public WeatherConf() {
        super();
    }
 
    public WeatherConf(String companyId, String deptId) {
        super();
        this.companyId = companyId;
        this.deptId = deptId;
    }
 
    public WeatherConf(String companyId, String deptId, String cityId) {
        super();
        this.companyId = companyId;
        this.deptId = deptId;
        this.cityId = cityId;
    }
}