package org.dromara.elevator.domain.vo;

import java.math.BigDecimal;
import java.util.Date;

import org.dromara.elevator.domain.EFaultMessage;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 故障消息;视图对象 e_fault_message
 *
 * @author zy
 * @date 2024-07-29
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EFaultMessage.class)
public class EFaultMessageVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 故障编号
     */
    @ExcelProperty(value = "故障编号")
    private String faultCode;

    /**
     * 故障名称
     */
    @ExcelProperty(value = "故障名称")
    private String faultName;

    /**
     * 终端编号
     */
    @ExcelProperty(value = "终端编号")
    private String deviceCode;

    /**
     * 电梯编号
     */
    @ExcelProperty(value = "电梯编号")
    private String elevatorNum;

    /**
     * 电梯名称
     */
    @ExcelProperty(value = "电梯名称")
    private String elevatorName;

    /**
     * 电梯注册代码
     */
    @ExcelProperty(value = "电梯注册代码")
    private String registerCode;

    /**
     * 发生时间
     */
    @ExcelProperty(value = "发生时间")
    private Date happenTime;

    /**
     * 恢复时间
     */
    @ExcelProperty(value = "恢复时间")
    private Date recoverTime;

    /**
     * 故障来源
     */
    @ExcelProperty(value = "故障来源")
    private String source;

    /**
     * 楼层
     */
    @ExcelProperty(value = "楼层")
    private String floor;

    /**
     * 故障图片
     */
    @ExcelProperty(value = "故障图片")
    private String picture;

    /**
     * 故障状态
     */
    @ExcelProperty(value = "故障状态")
    private Integer state;

    /**
     * 确认人
     */
    @ExcelProperty(value = "确认人")
    private String affirmPeople;

    /**
     * 故障原因
     */
    @ExcelProperty(value = "故障原因")
    private String cause;


    /**
     * 故障原因编码
     */
    @ExcelProperty(value = "故障原因编码")
    private String causeCode;

    /**
     * 原因分析编码
     */
    @ExcelProperty(value = "原因分析编码")
    private String causeAnalyseCode;

    /**
     * 原因分析
     */
    @ExcelProperty(value = "原因分析")
    private String causeAnalyse;

    /**
     * 故障说明
     */
    @ExcelProperty(value = "故障说明")
    private String explain;

    /**
     * 视频地址
     */
    @ExcelProperty(value = "视频地址")
    private String videoAddress;

    /**
     * 故障确认附件
     */
    private String attachment;

    /**
     * 故障推送类型 1:故障发生主 2、故障恢复 、3故障发生恢复
     */
    private Integer faultPushType;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 经度
     */
    private BigDecimal lng;

    /**
     * 纬度
     */
    private BigDecimal lat;
}
