package org.jeecg.modules.sensor.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 传感器信息表
 * @Author: jeecg-boot
 * @Date:   2020-12-23
 * @Version: V1.0
 */
@Data
@ApiModel(value="bu_sensor对象", description="传感器信息表")
public class BuSensorModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**传感器类型*/
    @ApiModelProperty(value = "传感器类型")
    private String typeId;
    /**使用时间*/
    @Excel(name = "使用时间", width = 15)
    @ApiModelProperty(value = "使用时间")
    private String useTime;
    /**设备ID*/
    @ApiModelProperty(value = "设备ID")
    private String deviceId;
    /**设备名称*/
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    /**设备状态*/
    @ApiModelProperty(value = "设备状态")
    private Integer deviceStatus;
    /**传感器名称*/
    @ApiModelProperty(value = "传感器名称")
    private String name;
    /**测量项目*/
    @ApiModelProperty(value = "测量项目")
    private String checkItem;
    /**数据单位*/
    @ApiModelProperty(value = "数据单位")
    private String dataUnit;
    /**预警界限*/
    @ApiModelProperty(value = "预警界限")
    private String warningLimit;
    /**报警界限*/
    @ApiModelProperty(value = "报警界限")
    private String alarmLimit;
    /**IP地址*/
    @ApiModelProperty(value = "IP地址")
    private String ipAddress;
    /**数据值*/
    @ApiModelProperty(value = "数据值")
    private String dataValue;
    /**告警下限*/
    @ApiModelProperty(value = "告警下限")
    private String alarmMin;
    /**预警下限*/
    @ApiModelProperty(value = "预警下限")
    private String warningMin;
    /**对应预警表名*/
    @ApiModelProperty(value = "对应预警表名")
    private String tableName;
    /**对应告警表名*/
    @ApiModelProperty(value = "对应告警表名")
    private String tableNameAlarm;
    @TableField(exist = false)
    private String data1;
    @TableField(exist = false)
    private String time;
}
