package com.njcn.harmonic.common.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * pqs
 * 装置数据单位配置类
 * @author cdf
 * @date 2026/1/17
 */
@Data
public class DeviceUnitCommDTO {
    private static final long serialVersionUID = 1L;

    @TableId(value = "DEV_INDEX")
    @ApiModelProperty(value = "终端编号")
    private String devIndex;

    @TableField("UNIT_FREQUENCY")
    @ApiModelProperty(value = "频率")
    private String unitFrequency = "Hz";

    @TableField("UNIT_FREQUENCY_DEV")
    @ApiModelProperty(value = "频率偏差")
    private String unitFrequencyDev = "Hz";

    @TableField("PHASE_VOLTAGE")
    @ApiModelProperty(value = "相电压有效值")
    private String phaseVoltage = "kV";

    @TableField("LINE_VOLTAGE")
    @ApiModelProperty(value = "线电压有效值")
    private String lineVoltage = "kV";

    @TableField("VOLTAGE_DEV")
    @ApiModelProperty(value = "电压上偏差")
    private String voltageDev = "%";

    @TableField("UVOLTAGE_DEV")
    @ApiModelProperty(value = "电压下偏差")
    private String uvoltageDev = "%";

    @TableField("I_EFFECTIVE")
    @ApiModelProperty(value = "电流有效值")
    private String ieffective = "A";

    @TableField("SINGLE_P")
    @ApiModelProperty(value = "单相有功功率")
    private String singleP = "kW";

    @TableField("SINGLE_VIEW_P")
    @ApiModelProperty(value = "单相视在功率")
    private String singleViewP = "kVA";

    @TableField("SINGLE_NO_P")
    @ApiModelProperty(value = "单相无功功率")
    private String singleNoP = "kVar";

    @TableField("TOTAL_ACTIVE_P")
    @ApiModelProperty(value = "总有功功率")
    private String totalActiveP = "kW";

    @TableField("TOTAL_VIEW_P")
    @ApiModelProperty(value = "总视在功率")
    private String totalViewP = "kVA";

    @TableField("TOTAL_NO_P")
    @ApiModelProperty(value = "总无功功率")
    private String totalNoP = "kVar";

    @TableField("V_FUND_EFFECTIVE")
    @ApiModelProperty(value = "相（线）电压基波有效值")
    private String vfundEffective = "kV";

    @TableField("I_FUND")
    @ApiModelProperty(value = "基波电流")
    private String ifund = "A";

    @TableField("FUND_ACTIVE_P")
    @ApiModelProperty(value = "基波有功功率")
    private String fundActiveP = "kW";

    @TableField("FUND_NO_P")
    @ApiModelProperty(value = "基波无功功率")
    private String fundNoP = "kVar";

    @TableField("V_DISTORTION")
    @ApiModelProperty(value = "电压总谐波畸变率")
    private String vdistortion = "%";

    @TableField("V_HARMONIC_RATE")
    @ApiModelProperty(value = "2～50次谐波电压含有率")
    private String vharmonicRate = "%";

    @TableField("I_HARMONIC")
    @ApiModelProperty(value = "2～50次谐波电流有效值")
    private String iharmonic = "A";

    @TableField("P_HARMONIC")
    @ApiModelProperty(value = "2～50次谐波有功功率")
    private String pharmonic = "kW";

    @TableField("I_IHARMONIC")
    @ApiModelProperty(value = "0.5～49.5次间谐波电流有效值")
    private String iiharmonic = "A";

    @TableField("POSITIVE_V")
    @ApiModelProperty(value = "正序电压")
    private String positiveV = "kV";

    @TableField("NO_POSITIVE_V")
    @ApiModelProperty(value = "零序负序电压")
    private String noPositiveV = "V";
}
