package com.hdkj.lt.core.bizms.modle.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@TableName(value ="grid_pd_outage_event_base")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GridPdOutageEventBase {

    private Long id;

    @ApiModelProperty(value = "事件编号")
    private String outageNumber;

    @ApiModelProperty(value = "事件类型: 01：整线; 02：支线; 03：单配变; 08：单中压用户")
    private String outageType;

    @ApiModelProperty(value = "事件性质: 01：计划; 02：故障")
    private String outageNature;

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

    @ApiModelProperty(value = "影响变电站id")
    private String rdtSubsId;

    @ApiModelProperty(value = "影响变电站名称")
    private String rdtSubsName;

    @ApiModelProperty(value = "影响馈线id")
    private String rdtFeederId;

    @ApiModelProperty(value = "影响馈线名称")
    private String rdtFeederName;

    @ApiModelProperty(value = "故障点设备id")
    private String faultEquipId;

    @ApiModelProperty(value = "故障点设备名称")
    private String faultEquipName;

    @ApiModelProperty(value = "故障点设备类型-开关类型（断路器、负荷开关）使用业务中台设备类型标识")
    private String faultEquipType;

    @ApiModelProperty(value = "故障点所属设备id")
    private String faultEquipCtrId;

    @ApiModelProperty(value = "故障点所属名称")
    private String faultEquipCtrName;

    @ApiModelProperty(value = "网省id[同源id]")
    private String provinceId;

    @ApiModelProperty(value = "网省名称")
    private String provinceName;

    @ApiModelProperty(value = "地市id[同源id]")
    private String cityId;

    @ApiModelProperty(value = "地市名称")
    private String cityName;

    @ApiModelProperty(value = "区县id[同源id]")
    private String countyId;

    @ApiModelProperty(value = "区县名称")
    private String countyName;

    @ApiModelProperty(value = "维护班组id[同源id]")
    private String maintGroupId;

    @ApiModelProperty(value = "维护班组名称")
    private String maintGroupName;

    @ApiModelProperty("事件开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime beginTime;

    @ApiModelProperty("事件开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime endTime;

    @ApiModelProperty("事件开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime ctime;

    @ApiModelProperty("事件开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime mtime;

    @ApiModelProperty(value = "事件影响变压器数量")
    private Integer affectedEquipmentCnt;

    @ApiModelProperty(value = "事件影响用户数量")
    private Integer affectedConsCnt;

    @ApiModelProperty(value = "拉取数据入库时间")
    private String createTime;

    @ApiModelProperty(value = "1事中，2事后")
    private String analysisType;

    @ApiModelProperty(value = "综合智能体分析停电原因")
    private String outageAgentReason;

    @ApiModelProperty(value = "报表上传到oss的id")
    private String ossId;

    @ApiModelProperty(value = "时户数")
    private String householdCnt;

    private String outageFlag;
}
