TDeviceInfo.java 6.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
package com.zehong.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;

/**
12
 * 设备信息对象 t_device_info
13 14
 * 
 * @author zehong
15
 * @date 2021-07-09
16
 */
17
public class TDeviceInfo extends BaseEntity
18 19 20
{
    private static final long serialVersionUID = 1L;

21
    /** 设备id */
22
    private Integer deviceId;
23 24 25

    /** 企业id */
    @Excel(name = "企业id")
26
    private Integer enterpriseId;
27

28 29
    /** 所属管道编号 */
    @Excel(name = "所属管道编号")
王晓倩's avatar
王晓倩 committed
30
    private int pipeId;
31

32 33
    /** 设备名称 */
    @Excel(name = "设备名称")
34 35
    private String deviceName;

36 37 38 39
    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

40 41
    /** 所在地址 */
    @Excel(name = "所在地址")
42 43
    private String deviceAddr;

44 45
    /** 设备型号 */
    @Excel(name = "设备型号")
46 47
    private String deviceModel;

48
    /** 设备类型(1调压阀,2阀门井,3流量计,4压力表) */
49 50 51
    @Excel(name = "设备类型")
    private String deviceType;

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
    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 物联网编号 */
    @Excel(name = "物联网编号")
    private String iotNo;

    /** 设备图片路径 */
    @Excel(name = "设备图片路径")
    private String iconUrl;

    /** 联系人 */
    @Excel(name = "联系人")
    private String linkman;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 安装时间 */
77 78
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装时间", width = 30, dateFormat = "yyyy-MM-dd")
79 80 81
    private Date installationTime;

    /** 最后巡检时间 */
82 83
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
84 85
    private Date inspectionTime;

86 87 88 89
    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDel;

90 91 92 93
    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

94
    public void setDeviceId(Integer deviceId)
95
    {
96
        this.deviceId = deviceId;
97 98
    }

99
    public Integer getDeviceId()
100
    {
101
        return deviceId;
102
    }
103
    public void setEnterpriseId(Integer enterpriseId)
104 105 106 107
    {
        this.enterpriseId = enterpriseId;
    }

108
    public Integer getEnterpriseId()
109 110 111
    {
        return enterpriseId;
    }
王晓倩's avatar
王晓倩 committed
112
    public void setPipeId(int pipeId)
113
    {
王晓倩's avatar
王晓倩 committed
114
        this.pipeId = pipeId;
115 116
    }

王晓倩's avatar
王晓倩 committed
117
    public int getPipeId()
118
    {
王晓倩's avatar
王晓倩 committed
119
        return pipeId;
120 121 122 123 124 125 126 127 128 129
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
130 131 132 133 134 135 136 137 138 139

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public void setDeviceAddr(String deviceAddr)
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
    {
        this.deviceAddr = deviceAddr;
    }

    public String getDeviceAddr() 
    {
        return deviceAddr;
    }
    public void setDeviceModel(String deviceModel) 
    {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() 
    {
        return deviceModel;
    }
157 158 159 160 161 162 163 164 165
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setIotNo(String iotNo) 
    {
        this.iotNo = iotNo;
    }

    public String getIotNo() 
    {
        return iotNo;
    }
    public void setIconUrl(String iconUrl) 
    {
        this.iconUrl = iconUrl;
    }

    public String getIconUrl() 
    {
        return iconUrl;
    }
    public void setLinkman(String linkman) 
    {
        this.linkman = linkman;
    }

    public String getLinkman() 
    {
        return linkman;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setInstallationTime(Date installationTime) 
    {
        this.installationTime = installationTime;
    }

    public Date getInstallationTime() 
    {
        return installationTime;
    }
    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }
238 239 240 241 242 243 244 245 246 247

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public void setRemarks(String remarks)
248 249 250 251 252 253 254 255 256 257 258 259
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
260
            .append("deviceId", getDeviceId())
261
            .append("enterpriseId", getEnterpriseId())
王晓倩's avatar
王晓倩 committed
262
            .append("pipeCode", getPipeId())
263
            .append("deviceName", getDeviceName())
264
            .append("deviceCode", getDeviceCode())
265 266
            .append("deviceAddr", getDeviceAddr())
            .append("deviceModel", getDeviceModel())
267
            .append("deviceType", getDeviceType())
268 269 270 271 272 273 274 275 276 277 278 279
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("iotNo", getIotNo())
            .append("iconUrl", getIconUrl())
            .append("linkman", getLinkman())
            .append("phone", getPhone())
            .append("installationTime", getInstallationTime())
            .append("inspectionTime", getInspectionTime())
            .append("remarks", getRemarks())
            .toString();
    }
}