package com.njcn.harmonic.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 变电站指标统计表实体类
 *
 * @author rui.wu
 * @since 2022-10-18
 */
@Data
@ApiModel(value = "变电站指标统计表实体类")
public class RStatSubstationOrg2VO implements Serializable {
    private static final long serialVersionUID = 117875946877905400L;

    public static final String FREQUENCY_DEV = "Frequency_Dev";
    public static final String VOLTAGE_DEV = "Voltage_Dev";
    public static final String FLICKER = "Flicker";
    public static final String HARMONIC_VOLTAGE = "Harmonic_Voltage";
    public static final String HARMONIC_CURRENT = "Harmonic_Current";
    public static final String INTERHARMONIC_VOLTAGE = "Interharmonic_Voltage";
    public static final String PHASE_VOLTAGE = "phase_Voltage";
    public static final String NEG_CURRENT = "Neg_Current";
    public static final String TOTAL_INDICATOR = "Total_Indicator";

    /**
     * 单位ID
     */
    @ApiModelProperty(name = "orgNo", value = "单位ID")
    private String orgNo;

    /**
     * 单位名称
     */
    @ApiModelProperty(name = "orgName", value = "单位名称")
    private String orgName;

    /**
     * 生成数据的时间,每年统计一次
     */
    @ApiModelProperty(name = "dataDate", value = "生成数据的时间,每年统计一次")
    private Date dataDate;

    /**
     * 日均有效接入监测点数
     */
    @ApiModelProperty(name = "effectiveMeasurementAverage", value = "日均有效接入监测点数")
    private Float effectiveMeasurementAverage;

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

    /**
     * 日均稳态超标监测点数
     */
    @ApiModelProperty(name = "eventMeasurementAverage", value = "日均监测到暂态指标的监测点数")
    private Float harmonicMeasurementAverage;

    /**
     * 累计稳态超标监测点数
     */
    @ApiModelProperty(name = "eventMeasurementAccrued", value = "累计监测到暂态指标的监测点数")
    private Integer harmonicMeasurementAccrued;

    /**
     * 日均暂态超标监测点数占比
     */
    @ApiModelProperty(name = "eventMeasurementRatioAverage", value = "日均暂态超标监测点数占比")
    private Integer harmonicMeasurementRatioAverage;

    /**
     * 累计暂态超标监测点数占比
     */
    @ApiModelProperty(name = "eventMeasurementRatioAccrued", value = "累计暂态超标监测点数占比")
    private Integer harmonicMeasurementRatioAccrued;



    /**
     * 频率偏差
     */
    private Float tAverage;
    private Integer tAccrued;
    private Float oAverage;
    private Float oAccrued;
    private Integer chainAverage;
    private Integer chainAccrued;
    private Integer sameAverage;
    private Integer sameAccrued;
    private Float averageOverDay;

    /**
     *  电压偏差
     */
    private Float tAverage1;
    private Integer tAccrued1;
    private Float oAverage1;
    private Float oAccrued1;
    private Integer chainAverage1;
    private Integer chainAccrued1;
    private Integer sameAverage1;
    private Integer sameAccrued1;
    private Float averageOverDay1;

    /**
     * 闪变
     */
    private Float tAverage2;
    private Integer tAccrued2;
    private Float oAverage2;
    private Float oAccrued2;
    private Integer chainAverage2;
    private Integer chainAccrued2;
    private Integer sameAverage2;
    private Integer sameAccrued2;
    private Float averageOverDay2;

    /**
     * 谐波电压
     */
    private Float tAverage3;
    private Integer tAccrued3;
    private Float oAverage3;
    private Float oAccrued3;
    private Integer chainAverage3;
    private Integer chainAccrued3;
    private Integer sameAverage3;
    private Integer sameAccrued3;
    private Float averageOverDay3;

    /**
     *谐波电流
     */
    private Float tAverage4;
    private Integer tAccrued4;
    private Float oAverage4;
    private Float oAccrued4;
    private Integer chainAverage4;
    private Integer chainAccrued4;
    private Integer sameAverage4;
    private Integer sameAccrued4;
    private Float averageOverDay4;


    /**
     *间谐波电压
     */
    private Float tAverage5;
    private Integer tAccrued5;
    private Float oAverage5;
    private Float oAccrued5;
    private Integer chainAverage5;
    private Integer chainAccrued5;
    private Integer sameAverage5;
    private Integer sameAccrued5;
    private Float averageOverDay5;


    /**
     *三相电压不平衡度
     */
    private Float tAverage6;
    private Integer tAccrued6;
    private Float oAverage6;
    private Float oAccrued6;
    private Integer chainAverage6;
    private Integer chainAccrued6;
    private Integer sameAverage6;
    private Integer sameAccrued6;
    private Float averageOverDay6;

    /**
     *负序电流
     */
    private Float tAverage7;
    private Integer tAccrued7;
    private Float oAverage7;
    private Float oAccrued7;
    private Integer chainAverage7;
    private Integer chainAccrued7;
    private Integer sameAverage7;
    private Integer sameAccrued7;
    private Float averageOverDay7;

    /**
     *总稳态指标
     */
    private Float tAverage8;
    private Integer tAccrued8;
    private Float oAverage8;
    private Float oAccrued8;
    private Integer chainAverage8;
    private Integer chainAccrued8;
    private Integer sameAverage8;
    private Integer sameAccrued8;
    private Float averageOverDay8;

    @Data
    public static class PwRStatSubstationOrgVO extends RStatSubstationOrg2VO {
        /**
         * 监测点类别
         */
        @ApiModelProperty(name = "monitorSort", value = "监测点类别")
        private String monitorSort;
    }

}

