package org.jeecg.modules.sensor.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 org.jeecg.common.aspect.annotation.Dict;
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
@TableName("bu_sensor")
@ApiModel(value="bu_sensor对象", description="传感器信息表")
public class BuSensor implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @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;
    /**传感器类型*/
    @Excel(name = "传感器类型", width = 15)
    @ApiModelProperty(value = "传感器类型")
    @Dict(dictTable = "bu_sensor_type",dicText = "name",dicCode = "id")
    private String typeId;
	/**设备ID*/
//    @Excel(name = "设备ID", width = 15)
    @ApiModelProperty(value = "设备ID")
//    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceId;
    /**设备名称*/
    @Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    /**传感器名称*/
    @Excel(name = "传感器名称", width = 15)
    @ApiModelProperty(value = "传感器名称")
    private String name;
    /**测量项目*/
    @Excel(name = "测量项目", width = 15)
    @ApiModelProperty(value = "测量项目")
    private String checkItem;
    /**传感器顺序*/
    @Excel(name = "传感器顺序", width = 15)
    @ApiModelProperty(value = "传感器顺序")
    private int dataUnit;
    /**传感器安装位置*/
    @Excel(name = "传感器安装位置", width = 15)
    @ApiModelProperty(value = "传感器安装位置")
    private String location;
    @ApiModelProperty(value = "二维码")
    private String Code;

    @TableField(exist = false)
    private String deviceCode;


//    /**传感器类型*/
//    @Excel(name = "传感器类型", width = 15, dicCode = "sensor_type")
//    @Dict(dicCode = "sensor_type")
//    @ApiModelProperty(value = "传感器类型")
//    private String typeId;
//    /**测量项目*/
//    @Excel(name = "测量项目", width = 15)
//    @ApiModelProperty(value = "测量项目")
//    private String checkItem;
//    /**传感器顺序*/
////    @Excel(name = "传感器顺序", width = 15)
//    @ApiModelProperty(value = "传感器顺序")
//    private String dataUnit;
//    /**预警界限*/
//    @Excel(name = "预警界限", width = 15)
//    @ApiModelProperty(value = "预警界限")
//    private String warningLimit;
//    /**报警界限*/
//    @Excel(name = "报警界限", width = 15)
//    @ApiModelProperty(value = "报警界限")
//    private String alarmLimit;
//    /**IP地址*/
//    @Excel(name = "IP地址", width = 15)
//    @ApiModelProperty(value = "IP地址")
//    private String ipAddress;
//    /**数据值*/
//    @ApiModelProperty(value = "数据值")
//    private String dataValue;
//    /**报警下限*/
//    @Excel(name = "报警下限", width = 15)
//    @ApiModelProperty(value = "报警下限")
//    private String alarmMin;
//    /**预警下限*/
//    @Excel(name = "预警下限", width = 15)
//    @ApiModelProperty(value = "预警下限")
//    private String warningMin;
//    /**对应预警表名*/
//    @ApiModelProperty(value = "对应预警表名")
//    private String tableName;
//    /**对应告警表名*/
//    @ApiModelProperty(value = "对应告警表名")
//    private String tableNameAlarm;
//    /**电池电压*/
//    @Excel(name = "电池电压", width = 15)
//    @ApiModelProperty(value = "电池电压")
//    private String power;
//    /**主板温度*/
//    @Excel(name = "主板温度", width = 15)
//    @ApiModelProperty(value = "主板温度")
//    private String batwd;
////    /**架车机高度*/
////    @Excel(name = "架车机高度", width = 15)
////    @ApiModelProperty(value = "架车机高度")
////    private double deviceHeight;
//    /**采集时间*/
//    @Excel(name = "采集时间", width = 15)
//    @ApiModelProperty(value = "采集时间")
//    private String collectTime;

}
