package com.njcn.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;

/**
 *
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2022/12/14  16:17【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */

/**
    * 区域分类统计月表
    */
@Data
@TableName(value = "r_stat_org_m")
public class RStatOrgMPO {
    /**
     * 单位ID
     */
    @MppMultiId(value = "org_no")
    private String orgNo;
    /**
     * 数据类型,字典表（01：主网测点  02：配网测点）
     */
    @MppMultiId(value = "data_type")
    private String dataType;

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

    /**
     * 监测点类别ID、监测对象类型ID
     */
    @MppMultiId(value = "measurement_type_class")
    private String measurementTypeClass;

    /**
     * 总监测点数
     */
    @TableField(value = "all_count")
    private Integer allCount;

    /**
     * 日均有效接入监测点数
     */
    @TableField(value = "effective_measurement_average")
    private Double effectiveMeasurementAverage;

    /**
     * 累计有效接入监测点数
     */
    @TableField(value = "effective_measurement_accrued")
    private Integer effectiveMeasurementAccrued;

    /**
     * 日均稳态超标监测点数
     */
    @TableField(value = "harmonic_measurement_average")
    private Double harmonicMeasurementAverage;

    /**
     * 累计稳态超标监测点数
     */
    @TableField(value = "harmonic_measurement_accrued")
    private Integer harmonicMeasurementAccrued;

    /**
     * 日均稳态超标监测点数占比
     */
    @TableField(value = "harmonic_measurement_ratio_average")
    private Double harmonicMeasurementRatioAverage;

    /**
     * 累计超标天数
     */
    @TableField(value = "over_day_accrued")
    private Integer overDayAccrued;

    /**
     * 频率偏差合格率
     */
    @TableField(value = "freq_pass_rate")
    private Double freqPassRate;

    /**
     * 电压偏差合格率
     */
    @TableField(value = "v_dev_pass_rate")
    private Double vDevPassRate;

    /**
     * 闪变合格率
     */
    @TableField(value = "flicker_pass_rate")
    private Double flickerPassRate;

    /**
     * 日均监测到暂态指标的监测点数
     */
    @TableField(value = "event_measurement_average")
    private Double eventMeasurementAverage;

    /**
     * 累计监测到暂态指标的监测点数
     */
    @TableField(value = "event_measurement_accrued")
    private Integer eventMeasurementAccrued;

    /**
     * 日均暂态超标监测点数占比
     */
    @TableField(value = "event_measurement_ratio_average")
    private Double eventMeasurementRatioAverage;

    /**
     * 暂态指标发生频次
     */
    @TableField(value = "event_freq")
    private Double eventFreq;

    /**
     * 暂态指标发生次数
     */
    @TableField(value = "event_count")
    private Integer eventCount;

    /**
     * 应设点数
     */
    @TableField(value = "should_count")
    private Integer shouldCount;

    /**
     * 告警监测点数
     */
    @TableField(value = "warn_count")
    private Integer warnCount;


}
