package com.imdroid.secapi.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.imdroid.secapi.easyexcel.LocalTimeStringConverter;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
public class GnssStatusJoin {
    @ExcelIgnore
    Long id;

    @ExcelProperty("租户id")
    Integer tenantid;

    @ExcelProperty("更新日期时间")
    LocalDateTime updatetime;

    @ExcelProperty(value = "设备时间", converter = LocalTimeStringConverter.class)
    LocalTime devicetime;

    @ExcelProperty("设备编号")
    String deviceid;

    @ExcelProperty("设备位置")
    String location;

    @ExcelProperty("roll")
    Float roll;

    @ExcelProperty("pitch")
    Float pitch;

    @ExcelProperty("yaw")
    Float yaw;

    @ExcelProperty("rssi")
    Integer rssi;

    @ExcelProperty("电压")
    Integer voltage;

    @ExcelProperty("温度")
    Float temperature;

    @ExcelProperty("湿度")
    Float humidity;

    @ExcelProperty("使用卫星")
    Integer satelliteinuse;
    // 这里的收发都是服务端统计的，终端收发详细统计在msg_trx表里

    @ExcelProperty("txbytes")
    Integer txbytes;

    @ExcelProperty("rxbytes")
    Integer rxbytes;

    @ExcelProperty("b562bytes")
    Integer b562bytes;

    @ExcelProperty("d3xxbytes")
    Integer d3xxbytes;

    @ExcelProperty("状态")
    Short state;

    @ExcelProperty("告警编号")
    Integer warningcode;

    @ExcelProperty("告警状态")
    Short warning;

    @ExcelProperty("设备类型")
    Short devicetype;

    @ExcelIgnore
    Integer group_id;

    @ExcelProperty("工点")
    String name;//设备名称

    @ExcelProperty("纬度")
    Double latitude;
    @ExcelProperty("经度")
    Double longitude;
    @ExcelProperty("海拔")
    Double altitude;
}
