package com.njcn.csharmonic.pojo.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.njcn.influx.pojo.dto.EventDataSetDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Description:
 * Date: 2023/9/5  8:54【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class EventDetailVO {

    private String id;

    /**
     * 监测点id
     */
    private String lineId;


    @ApiModelProperty(value = "工程id")
    private String engineeringid;

    /**
     * 工程名称
     */
    @ApiModelProperty(value = "工程名称")
    private String engineeringName;
    @ApiModelProperty(value = "项目id")
    private String projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;
    /**
     * 装置id
     */
    private String deviceId;

    @ApiModelProperty(value = "设备网络id")
    private String nDid;

    @ApiModelProperty(value = "设备类型")
    private String devType;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "监测点名称")
    private String lineName;

    /**
     * 事件时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss.SSS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS",timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 事件时间 不带毫秒
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime2;

    /**
     * 事件字典id
     */
    private String dictDataId;

    /**
     * 事件类型
     */
    private String tag;

    /**
     * 事件名称
     */
    private String showName;

    /**
     * 暂态事件波形文件路
     */
    private String wavePath;

    /**
     * 事件类型(0:暂态事件1:稳态事件 2:设备事
     * 件)
     */
    private Integer type;

    private String userId;

    /**
     * 瞬时波形图，存在多张的情况
     */
    private String instantPics;


    /**
     * RMS波形图，存在多张的情况
     */
    private String rmsPics;
    @ApiModelProperty(value = "事件等级(1:Ⅰ级||ERROR 2:Ⅱ级||WARN 3:Ⅲ级||(DEBUG&&NORMAL))")
    private String level;

    /**
     * 状态(0:未读取 1:已读取)
     */
    private Integer status;

    private String location;

    private List<EventDataSetDTO> dataSet;
    /*暂态深度*/
    private String evtParamVVaDepth;
    /*持续时间深度*/
    private String evtParamTm;
    /*相别*/
    private String evtParamPhase;
    /*位置*/
    private String evtParamPosition;

    private String code;
    //用于波形分析区别pms，pq
    private String systemType="ZL";

    @ApiModelProperty("子模块编号")
    private String moduleNo;

    @ApiModelProperty("逻辑子设备编码")
    private Integer clDid;

    @ApiModelProperty("ITIC描述")
    private String itic;

    @ApiModelProperty("F47描述")
    private String f47;

    @ApiModelProperty("事件落点")
    private String landPoint;

    @ApiModelProperty("暂降原因")
    private String advanceReason;

    @ApiModelProperty("暂降类型")
    private String advanceType;

    @ApiModelProperty("暂降源与监测位置关系 0-未知、1-上游、2-下游")
    private String sagSource;

    @ApiModelProperty("监测点电压等级")
    private Double lineVoltage;

    @ApiModelProperty("事件严重度")
    private Double severity;

}
