package com.sptg.third.api.entity.topsailiot;

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 lombok.Getter;
import lombok.Setter;

/**
 * @author zwx
 * @create 2020/12/5 18:57
 */
@Setter
@Getter
@TableName(value = "topsail_device")
public class TopsailDevice {

    //id
    @TableId(value = "l_id", type = IdType.AUTO)
    private Long id;
    //设备类型
    @TableField(value = "i_device_type")
    private Integer deviceType;
    //设备编号
    @TableField(value = "s_imei")
    private String Imei;
    //电池电量
    @TableField(value = "i_battery_level")
    private Integer batteryLevel;
    //采集间隔(s)
    @TableField(value = "i_collection_gap")
    private Integer collectionGap;
    //信号强度
    @TableField(value = "i_signal_strength")
    private Integer signalStrength;
    //数据单元，逗号前表示温度，后面便是开合度（0 关，10 开）
    @TableField(value = "s_sample_data")
    private String sampleData;
    //通道数量
    @TableField(value = "i_pass_num")
    private Integer passNum;
    //报警类型
    @TableField(value = "s_alarm_type")
    private String alarmType;
    //单位
    @TableField(value = "s_unit")
    private String unit;
    //数据值
    @TableField(value = "s_value")
    private String value;
    //数据单元
    @TableField(value = "s_data_body")
    private String dataBody;
    //数据上传时间
    @TableField(value = "s_time")
    private String time;
    //项目ID
    @TableField(value = "i_project_id")
    private Integer projectId;

    @TableField(exist = false)
    private String pageNo;

    @TableField(exist = false)
    private String pageSize;

    @TableField(exist = false)
    //数据开始时间 yyyy-MM-dd HH:mm:ss
    private String startTime;
    @TableField(exist = false)
    //数据截止时间 yyyy-MM-dd HH:mm:ss
    private String endTime;
}
