package org.jeecg.modules.energy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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: bu_air_noise_online
 * @Author: jeecg-boot
 * @Date:   2024-10-11
 * @Version: V1.0
 */
@Data
@TableName("bu_noise_online")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_air_noise_online对象", description="bu_air_noise_online")
public class BuAirNoise implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**传感器id*/
	@Excel(name = "传感器id", width = 15)
    @ApiModelProperty(value = "传感器id")
    @Dict(dictTable = "bu_sensor",dicText = "name",dicCode = "id")
    private String sensorId;
	/**采集时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "采集时间")
    private Date createTime;
	/**上传服务名*/
	@Excel(name = "上传服务名", width = 15)
    @ApiModelProperty(value = "上传服务名")
    private String serverName;
	/**状态*/
	@Excel(name = "状态(0正常 1预警 2报警)", width = 15)
    @ApiModelProperty(value = "状态(0正常 1预警 2报警)")
    private int status;
	/**报警的字段名*/
	@Excel(name = "报警的字段名", width = 15)
    @ApiModelProperty(value = "报警的字段名")
    private String statusname;
    /**噪声(分贝)*/
    @Excel(name = "噪声(分贝)", width = 15)
    @ApiModelProperty(value = "噪声(分贝)")
    private Double data;

    @TableField(exist = false)
    private String deviceId;
    @TableField(exist = false)
    private String beginTime;
    @TableField(exist = false)
    private String endTime;
    @TableField(exist = false)
    private String inTime;
    @TableField(exist = false)
    private String outTime;
    @TableField(exist = false)
    private String deviceName;
    @TableField(exist = false)
    private String deviceCode;
}
