package com.njcn.event.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author cdf
 * @version 1.0.0
 * @date 2022年08月24日 20:59
 */

@Data
public class EventDetailNew {


    private String lineId;


    @ApiModelProperty(value = "开始时间")
    private String startTime;


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


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


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


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


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


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


    private String eventassIndex;


    private Integer dqTime;


    private String dealTime;


    private Integer dealFlag;

    private Integer num;


    private Integer fileFlag;


    private String firstTime;


    private String firstType;


    private Integer firstMs;


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


    private Double energy;


    private Double severity;


    private String sagSource;


    private String createTime;

    private String lineName;

    private BigDecimal lat;

    private BigDecimal lng;

    private String gdName;

    private String subName;

    private String ip;

    private String scale;

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

    @ApiModelProperty(value = "暂降核实原因")
    private String verifyReason;

    @ApiModelProperty(value = "暂降核实原因详情")
    private String verifyReasonDetail;


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        //时间处理,LocalDateTime转string多一个T
        startTime = startTime.replace("T"," ");
        this.startTime = startTime;
    }
}
