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;
|
}
|
}
|