package org.jeecg.modules.sensor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: alarm_part
 * @Author: jeecg-boot
 * @Date:   2024-05-17
 * @Version: V1.0
 */
@Data
@TableName("alarm_part")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="alarm_part对象", description="alarm_part")
public class AlarmPart implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号")
    private String id;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**传感器编号 传感器编号，如果需要针对特丁传感器设置单独的参数则这项不为空，为空为通用参数*/
	@Excel(name = "传感器编号 传感器编号，如果需要针对特丁传感器设置单独的参数则这项不为空，为空为通用参数", width = 15)
    @ApiModelProperty(value = "传感器编号 传感器编号，如果需要针对特丁传感器设置单独的参数则这项不为空，为空为通用参数")
    private String sensorId;
	/**表名称 数据表名称bu_electric、bu_air_quality、bu_vibration 中选择*/
	@Excel(name = "表名称 数据表名称bu_electric、bu_air_quality、bu_vibration 中选择", width = 15)
    @ApiModelProperty(value = "表名称 数据表名称bu_electric、bu_air_quality、bu_vibration 中选择")
    private String tableName;
	/**字段的名称 关键字段的名称*/
	@Excel(name = "字段的名称 关键字段的名称", width = 15)
    @ApiModelProperty(value = "字段的名称 关键字段的名称")
    private String fieldName;
	/**报警上限*/
	@Excel(name = "报警上限", width = 15)
    @ApiModelProperty(value = "报警上限")
    private Double alarmLimit;
	/**预警上限*/
	@Excel(name = "预警上限", width = 15)
    @ApiModelProperty(value = "预警上限")
    private Double warningLimit;
	/**预警下限*/
	@Excel(name = "预警下限", width = 15)
    @ApiModelProperty(value = "预警下限")
    private Double warningMin;
	/**报警下限*/
	@Excel(name = "报警下限", width = 15)
    @ApiModelProperty(value = "报警下限")
    private Double alarmMin;
    /**异常故障设备类型*/
    @Excel(name = "异常故障设备类型", width = 15)
    @ApiModelProperty(value = "异常故障设备类型")
    @Dict(dicCode = "remind_type")
    private String faultType;

}
