package com.hdkj.lt.bf.entity.staticgrid;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 静态网架评估指标明细实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("t_static_indicator_metric")
@ApiModel(description = "静态网架评估指标明细")
public class StaticIndicatorMetric implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联主表ID")
    private Long resultId;

    @ApiModelProperty(value = "指标级别：county/feeder")
    private String level;

    /**
     * 馈线ID（level=county 时为 null）
     */
    private String feederId;

    @ApiModelProperty(value = "馈线名称")
    private String feederName;

    @ApiModelProperty(value = "源变电站ID")
    private String sourceSubstationId;

    @ApiModelProperty(value = "源变电站名称")
    private String sourceSubstationName;

    @ApiModelProperty(value = "源母线ID")
    private String sourceBusId;

    @ApiModelProperty(value = "供电区域类型")
    private String supplyAreaType;

    @ApiModelProperty(value = "分类代码")
    private String categoryCode;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "指标代码")
    private String metricCode;

    @ApiModelProperty(value = "指标名称")
    private String metricName;

    @ApiModelProperty(value = "指标值")
    private String value;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "结果分类")
    private String resultClass;

    @ApiModelProperty(value = "严重程度")
    private String severity;

    @ApiModelProperty(value = "计算状态")
    private String calculationStatus;

    @ApiModelProperty(value = "是否为问题项")
    private Integer isProblem;
}