package com.njcn.product.terminal.mysqlTerminal.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * pqs
 *
 * @author cdf
 * @date 2023/7/20
 */
@Data
public class AdvanceEventDetailVO {


    @ApiModelProperty(value = "暂时事件ID")
    private String eventId;

    @ApiModelProperty(value = "监测点ID")
    private String measurementPointId;

    @ApiModelProperty(value = "监测点ID(复制)")
    private String lineId;

    @ApiModelProperty(value = "统计类型")
    private String eventType;

    @ApiModelProperty(value = "暂降原因（Event_Reason）")
    private String advanceReason;

    @ApiModelProperty(value = "暂降类型（Event_Type）")
    private String advanceType;

    @ApiModelProperty(value = "事件关联分析表Guid")
    private String eventassIndex;

    @ApiModelProperty(value = "dq计算持续时间	")
    private Double dqTime;

    @ApiModelProperty(value = "特征值计算更新时间（外键PQS_Relevance的Time字段）")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime dealTime;

    @ApiModelProperty(value = "默认事件个数为0")
    private Integer num;

    @ApiModelProperty(value = "波形文件是否从装置招到本地(0：未招，1：已招)默认值为0")
    private Integer fileFlag;

    @ApiModelProperty(value = "特征值计算标志（0，未处理；1，已处理; 2，已处理，无结果;3，计算失败）默认值为0")
    private Integer dealFlag;

    @ApiModelProperty(value = "处理结果第一条事件发生时间(读comtra文件获取)")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime firstTime;

    @ApiModelProperty(value = "处理结果第一条事件暂降类型（字典表PQS_Dicdata）")
    private String firstType;

    @ApiModelProperty(value = "处理结果第一条事件发生时间毫秒(读comtra文件获取)")
    private Integer firstMs;

    @ApiModelProperty(value = "暂降能量")
    private Double energy;

    @ApiModelProperty(value = "暂降严重度")
    private Double severity;

    @ApiModelProperty(value = "暂降源与监测位置关系 Upper:上游；Lower :下游；Unknown :未知;为空则是未计算")
    private String sagsource;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss.SSS")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "持续时间，单位秒")
    private Integer duration;

    @ApiModelProperty(value = "特征幅值")
    private Double featureAmplitude;

    @ApiModelProperty(value = "相别")
    private String phase;

    @ApiModelProperty(value = "事件描述")
    private String eventDescribe;

    @ApiModelProperty(value = "波形路径")
    private String wavePath;

    private Double transientValue;

    @ApiModelProperty(value = "供电公司名称")
    private String gdName;

    @ApiModelProperty(value = "变电站名称")
    private String subName;

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

    @ApiModelProperty(value = "母线节点id")
    private String busBarId;

    @ApiModelProperty(value = "母线电压等级")
    private String voltageId;

    @ApiModelProperty(value = "特征值是否计算")
    private String featureAmplitudeFlag;

    @ApiModelProperty(value = "录波文件是否存在")
    private String boFileFlag;
}
