package com.hdkj.lt.bf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 运行优化单线指标表
 * @TableName fhzg_optimization_feeder_metrics
 */
@TableName(value ="fhzg_optimization_feeder_metrics")
@Data
public class FhzgOptimizationFeederMetrics implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 运行问题得分
     */
    @TableField(value = "operation_issue_score")
    private BigDecimal operationIssueScore;

    /**
     * 线路当前负载率
     */
    @TableField(value = "current_line_load_rate")
    private BigDecimal currentLineLoadRate;

    /**
     * 电流越限线段数
     */
    @TableField(value = "current_overlimit_segment_count")
    private Integer currentOverlimitSegmentCount;

    /**
     * 电压越限节点数
     */
    @TableField(value = "voltage_violation_node_count")
    private Integer voltageViolationNodeCount;

    /**
     * 转供裕度不足的对侧线路数
     */
    @TableField(value = "insufficient_transfer_capacity_line_count")
    private Integer insufficientTransferCapacityLineCount;

    /**
     * 线路N-1校验
     */
    @TableField(value = "line_n1_check")
    private Integer lineN1Check;

    /**
     * 可靠性得分
     */
    @TableField(value = "reliability_score")
    private BigDecimal reliabilityScore;

    /**
     * 线路状态
     */
    @TableField(value = "line_status")
    private Integer lineStatus;

    /**
     * 停电配变数
     */
    @TableField(value = "outage_transformer_count")
    private Integer outageTransformerCount;

    /**
     * 理论可靠性
     */
    @TableField(value = "theoretical_reliability")
    private BigDecimal theoreticalReliability;

    /**
     * 影响低压用户总数
     */
    @TableField(value = "affected_low_voltage_user_count")
    private Integer affectedLowVoltageUserCount;

    /**
     * 重要/敏感用户失电数
     */
    @TableField(value = "important_sensitive_user_loss_count")
    private Integer importantSensitiveUserLossCount;

    /**
     * 网损影响得分
     */
    @TableField(value = "network_loss_impact_score")
    private BigDecimal networkLossImpactScore;

    /**
     * 有功网损值
     */
    @TableField(value = "active_power_loss")
    private BigDecimal activePowerLoss;

    /**
     * 网损率
     */
    @TableField(value = "loss_rate")
    private BigDecimal lossRate;

    /**
     * 出口功率因数
     */
    @TableField(value = "export_power_factor")
    private BigDecimal exportPowerFactor;

    /**
     * 网架结构问题得分
     */
    @TableField(value = "network_structure_issue_score")
    private BigDecimal networkStructureIssueScore;

    /**
     * 线路接线类型
     */
    @TableField(value = "line_connection_type")
    private Integer lineConnectionType;

    /**
     * 线路联络开关数量
     */
    @TableField(value = "line_contact_switch_count")
    private Integer lineContactSwitchCount;

    /**
     * 整线装机容量
     */
    @TableField(value = "total_installed_capacity")
    private BigDecimal totalInstalledCapacity;

    /**
     * 整线挂接用户总数
     */
    @TableField(value = "line_user_count")
    private Integer lineUserCount;

    /**
     * 负荷组用户数或容量异常
     */
    @TableField(value = "abnormal_load_group_count")
    private Integer abnormalLoadGroupCount;

    /**
     * 负荷组分段数
     */
    @TableField(value = "load_group_segment_count")
    private Integer loadGroupSegmentCount;

    /**
     * 大分支数量
     */
    @TableField(value = "large_branch_count")
    private Integer largeBranchCount;

    /**
     * 线路供电半径
     */
    @TableField(value = "line_power_supply_radius")
    private BigDecimal linePowerSupplyRadius;

    /**
     * 0603: 指标数据确定不了，暂时用字符串存储
     */
    @TableField(value = "json_result")
    private String jsonResult;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}