TDeviceAlarm.java 3.76 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package com.zehong.system.domain;

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;

/**
 * 报警信息对象 t_device_alarm
 * 
 * @author zehong
 * @date 2021-07-21
 */
public class TDeviceAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
21
    private Integer alarmId;
22 23 24

    /** 设备id */
    @Excel(name = "设备id")
25
    private Integer deviceId;
26

27 28
    /** 设备类型(0管道,1调压阀,2阀门井,3流量计,4压力表) */
    private String deviceType;
29 30 31 32 33 34 35 36 37 38 39 40 41 42

    /** 工单id */
    @Excel(name = "工单id")
    private String orderId;

    /** 报警类型 */
    @Excel(name = "报警类型")
    private String alarmType;

    /** 报警值(报警信息) */
    @Excel(name = "报警值", readConverterExp = "报警信息")
    private String alarmValue;

    /** 报警开始时间 */
43 44
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
45 46 47
    private Date startTime;

    /** 报警结束时间 */
48 49
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
50 51
    private Date endTime;

52
    /** 处理状态(1不需处理,2已处理完成,3未处理完成) */
53 54 55
    @Excel(name = "处理状态", readConverterExp = "1不需处理,2已处理完成,3未处理完成")
    private String dealStatus;

56
    public void setAlarmId(Integer alarmId)
57 58 59 60
    {
        this.alarmId = alarmId;
    }

61
    public Integer getAlarmId()
62 63 64
    {
        return alarmId;
    }
65
    public void setDeviceId(Integer deviceId)
66
    {
67
        this.deviceId = deviceId;
68 69
    }

70
    public Integer getDeviceId()
71
    {
72
        return deviceId;
73 74
    }

75 76
    public String getDeviceType() {
        return deviceType;
77
    }
78

79 80
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
81 82 83
    }

    public void setOrderId(String orderId)
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 139 140 141
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setAlarmType(String alarmType) 
    {
        this.alarmType = alarmType;
    }

    public String getAlarmType() 
    {
        return alarmType;
    }
    public void setAlarmValue(String alarmValue) 
    {
        this.alarmValue = alarmValue;
    }

    public String getAlarmValue() 
    {
        return alarmValue;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDealStatus(String dealStatus) 
    {
        this.dealStatus = dealStatus;
    }

    public String getDealStatus() 
    {
        return dealStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alarmId", getAlarmId())
142 143
            .append("deviceId", getDeviceId())
            .append("isPipe", getDeviceType())
144 145 146 147 148 149 150 151 152 153 154
            .append("orderId", getOrderId())
            .append("alarmType", getAlarmType())
            .append("alarmValue", getAlarmValue())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("dealStatus", getDealStatus())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}