package com.casic.missiles.modular.system.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author casic123
 * @since 2019-05-17
 */
@TableName("alarm_records")
public class AlarmRecords extends Model<AlarmRecords> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    /**
     * 设备ID
     */
    @TableField("DEVICE_ID")
    private Long deviceId;
    /**
     * 设备编号
     */
    @TableField("DEVCODE")
    private String devcode;
    /**
     * 闸井编号
     */
    @TableField("WELL_CODE")
    private String wellCode;
    /**
     * 告警类型
     */
    @TableField("ALARM_TYPE")
    private String alarmType;
    /**
     * 告警内容
     */
    @TableField("ALARM_CONTENT")
    private String alarmContent;
    /**
     * 告警数值
     */
    @TableField("ALARM_VALUE")
    private String alarmValue;
    /**
     * 告警等级
     */
    @TableField("ALARM_LEVEL")
    private Integer alarmLevel;
    /**
     * 告警详情
     */
    @TableField("ALARM_MSG")
    private String alarmMessage;
    /**
     * 告警时间
     */
    @TableField("ALARM_TIME")
    private Date alarmTime;
    /**
     * 告警状态
     */
    @TableField("STATUS")
    private String status;
    /**
     * 工单编号
     */
    @TableField("JOB_ID")
    private Integer jobId;

    @TableField(exist = false)
    private Integer jobStatus;



    public Integer getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(Integer jobStatus) {
        this.jobStatus = jobStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDevcode() {
        return devcode;
    }

    public void setDevcode(String devcode) {
        this.devcode = devcode;
    }

    public String getWellCode() {
        return wellCode;
    }

    public void setWellCode(String wellCode) {
        this.wellCode = wellCode;
    }

    public String getAlarmType() {
        return alarmType;
    }

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

    public String getAlarmContent() {
        return alarmContent;
    }

    public void setAlarmContent(String alarmContent) {
        this.alarmContent = alarmContent;
    }

    public String getAlarmValue() {
        return alarmValue;
    }

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

    public Integer getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(Integer alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    public String getAlarmMessage() {
        return alarmMessage;
    }

    public void setAlarmMessage(String alarmMessage) {
        this.alarmMessage = alarmMessage;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getJobId() {
        return jobId;
    }

    public void setJobId(Integer jobId) {
        this.jobId = jobId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AlarmRecords{" +
        "id=" + id +
        ", deviceId=" + deviceId +
        ", devcode=" + devcode +
        ", wellCode=" + wellCode +
        ", alarmType=" + alarmType +
        ", alarmContent=" + alarmContent +
        ", alarmValue=" + alarmValue +
        ", alarmLevel=" + alarmLevel +
        ", alarmMessage=" + alarmMessage +
        ", alarmTime=" + alarmTime +
        ", status=" + status +
        ", jobId=" + jobId +
        ", jobStatus=" + jobStatus +
        "}";
    }
}
