package com.inspect.metadata.montdata.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.inspect.base.core.annotation.Excel;
import com.inspect.base.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BasedataMontPatDevStaData extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long dataId;
    @Excel(
            name = "巡检设备ID"
    )
    private Long eqpBookId;
    @Excel(
            name = "巡视设备编码"
    )
    private String patrolDeviceCode;
    @Excel(
            name = "巡视设备名称"
    )
    private String patrolDeviceName;
    @Excel(
            name = "时间"
    )
    private String time;
    @Excel(
            name = "类型，1: = 电池电量低 0: = 正常 1: = 低;  2: = 通信状态异常 0: = 正常 1: = 异常;  3: = 超声停障 0: = 正常 1: = 停障 ; 4: = 驱动异常 0: = 正常 1: = 异常;  21: = 故障报警 0: = 正常 1: = 报警; 41: = 运行状态 1: = 空闲状态  2: = 巡视状态 3: = 充电状态 4: = 检修状态; 61: = 控制模式 1: = 任务模式  2: = 紧急定位模式 3: = 后台遥控模式 4: = 手持遥控模式; 81: = 控制权状态 0: = 空闲 1: = 获得; 101: = 轮转状态 0: = 空闲 1: = 值班;  201: = 飞行状态 1: = 待命 2:= 准备起飞 3: = 飞行中 4: = 返航 5: = 着陆"
    )
    private String type;
    @Excel(
            name = "类型名称"
    )
    @JsonProperty("type_name")
    @JSONField(name = "type_name")
    private String typeName;
    @Excel(
            name = "值"
    )
    private String value;
    @Excel(
            name = "值名称"
    )
    @JsonProperty("value_name")
    @JSONField(name = "value_name")
    private String valueName;
    @Excel(
            name = "值带单位"
    )
    @JsonProperty("value_unit")
    @JSONField(name = "value_unit")
    private String valueUnit;
    @Excel(
            name = "单位"
    )
    private String unit;
    private String content;
    private String createBy;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    @Excel(
            name = "删除标志，0：正常；2：删除"
    )
    private String deleteFlag;
    private String beginTime;
    private String endTime;

    @Override
    public String toString() {
        return "BasedataMontPatDevStaData{" +
                "dataId=" + dataId +
                ", eqpBookId=" + eqpBookId +
                ", patrolDeviceCode='" + patrolDeviceCode + '\'' +
                ", patrolDeviceName='" + patrolDeviceName + '\'' +
                ", time='" + time + '\'' +
                ", type='" + type + '\'' +
                ", typeName='" + typeName + '\'' +
                ", value='" + value + '\'' +
                ", valueName='" + valueName + '\'' +
                ", valueUnit='" + valueUnit + '\'' +
                ", unit='" + unit + '\'' +
                ", content='" + content + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", deleteFlag='" + deleteFlag + '\'' +
                ", beginTime='" + beginTime + '\'' +
                ", endTime='" + endTime + '\'' +
                '}';
    }
}
