package com.njcn.prepare.harmonic.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

/**
 * 区域告警统计(月)
 * @TableName r_stat_area_alarm_count_m
 */
@Data
@TableName("r_stat_area_alarm_count_m")
public class RStatAreaAlarmCountMPO {

    /**
     * 单位ID
     */
    @MppMultiId(value = "org_no")
    private String orgNo;

    /**
     * 生成数据的时间,每月统计一次
     */
    @MppMultiId(value = "data_date")
    private LocalDate dataDate;

    /**
     * 数据类型(0:主网 1:配网)
     */
    @MppMultiId(value = "data_type")
    private String dataType;

    /**
     * 电压偏差告警情况(0:否 1:是)
     */
    @TableField(value = "vdev_alarm_info")
    private Integer vdevAlarmInfo;

    /**
     * 电压偏差告警超标占比
     */
    @TableField(value = "vdev_alarm_ratio")
    private Float vdevAlarmRatio;

    /**
     * 频率偏差告警情况(0:否 1:是)
     */
    @TableField(value = "freq_alarm_info")
    private Integer freqAlarmInfo;

    /**
     * 频率偏差告警超标占比
     */
    @TableField(value = "freq_alarm_ratio")
    private Float freqAlarmRatio;

    /**
     * 三相电压不平衡度告警情况(0:否 1:是)
     */
    @TableField(value = "unbalance_alarm_info")
    private Integer unbalanceAlarmInfo;

    /**
     * 三相电压不平衡度告警超标占比
     */
    @TableField(value = "unbalance_alarm_ratio")
    private Float unbalanceAlarmRatio;

    /**
     * 谐波电压告警情况(0:否 1:是)
     */
    @TableField(value = "v_alarm_info")
    private Integer vAlarmInfo;

    /**
     * 谐波电压告警超标占比
     */
    @TableField(value = "v_alarm_ratio")
    private Float vAlarmRatio;

    /**
     * 闪变告警情况(0:否 1:是)
     */
    @TableField(value = "flicker_alarm_info")
    private Integer flickerAlarmInfo;

    /**
     * 闪变告警超标占比
     */
    @TableField(value = "flicker_alarm_ratio")
    private Float flickerAlarmRatio;

    /**
     * 电压暂降告警情况(0:否 1:是)
     */
    @TableField(value = "sag_alarm_info")
    private Integer sagAlarmInfo;

    /**
     * 电压暂降告警平均发生次数
     */
    @TableField(value = "sag_alarm_avg_count")
    private Integer sagAlarmAvgCount;

    /**
     * 短时中断告警情况(0:否 1:是)
     */
    @TableField(value = "interrupt_alarm_info")
    private Integer interruptAlarmInfo;

    /**
     * 短时中断告警平均发生次数
     */
    @TableField(value = "interrupt_alarm_avg_count")
    private Integer interruptAlarmAvgCount;

    /**
     * 稳态指标评级结果（0 较差 1中等 2较好）
     */
    @TableField(value = "harmonic_type_grade")
    private Integer harmonicTypeGrade;

    /**
     * 暂态指标评级结果（0 较差 1中等 2较好）
     */
    @TableField(value = "event_type_grade")
    private Integer eventTypeGrade;
    @TableField(exist = false)
    private Float wtCount;
    @TableField(exist = false)
    private Float ztCount;

}
