package com.djhk.uav.uav.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.djhk.common.annotation.Excel;
import com.djhk.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 机场告警信息对象 uav_hms
 *
 * @author myk
 * @date 2023-04-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UavHms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 无人机编号 */
    @Excel(name = "无人机编号")
    private String uavNum;

    /** 机场编号 */
//    @Excel(name = "机场编号")
//    private String gatewayNum;

    /** 计划编号 */
    @Excel(name = "计划编号")
    private String flightPlanNo;

    /** 告警等级,"0:通知,1:提醒,2:警告" */
    @Excel(name = "告警等级,0:通知,1:提醒,2:警告")
    private Integer level;

    /** 事件模块,"0:飞行任务,1:设备管理,2:媒体,3:hms" */
    @Excel(name = "事件模块,0:飞行任务,1:设备管理,2:媒体,3:hms")
    private Integer module;

    /** 是否飞行,"0:在地上,1:在天上" */
    @Excel(name = "是否飞行,0:在地上,1:在天上")
    private Integer inTheSky;

    /** 告警码 */
    @Excel(name = "告警码")
    private String code;

    /** 是否为及时性的,"0:否,1:是" */
    @Excel(name = "是否为及时性的,0:否,1:是")
    private Integer imminent;

    /** 组件index */
    @Excel(name = "组件index")
    private Integer componentIndex;

    /** 传感器index */
    @Excel(name = "传感器index")
    private Integer sensorIndex;

    @TableField(exist = false)
    private Integer alarmId;

    /** 告警内容 */
    @Excel(name = "告警内容")
    private String content;

    /** 解决方案 */
    @Excel(name = "解决方案")
    private String solution;

    private Integer domain;

    private Integer subType;

    private Integer deviceType;

    private String bid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
