package com.njcn.advance.pojo.param.assess;

import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 评估电容器参数查询参数
 * </p>
 *
 * @author cdf
 * @since 2025-06-06
 */
@Getter
@Setter
@TableName("assess_capacitor_param")
@ApiModel(value = "AssessCapacitorParamQuery", description = "评估电容器参数查询参数")
public class AssessCapacitorParamQuery extends BaseParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评估用户ID，例：8afaa9a15707483a0157262f8e78077d")
    private String assessId;

    @ApiModelProperty(value = "电容器组名称，例：电容器组1")
    private String capacitorName;

    @ApiModelProperty(value = "电容器组个数，例：1")
    private Integer capacitorNum;

    @ApiModelProperty(value = "单组容量，单位kVar，例：100.00")
    private BigDecimal capacitorCapacity;

    @ApiModelProperty(value = "电抗率，单位%，例：5.00")
    private BigDecimal capacitorReactance;

    @ApiModelProperty(value = "电压等级，例：22。与PMS3.0内电压等级编码保持一致。")
    private String capacitorScale;

    /**
     * 更新评估电容器参数的查询参数
     */
    @EqualsAndHashCode(callSuper = true)
    @ApiModel(value = "UpdateAssessCapacitorParamQuery", description = "更新评估电容器参数的查询参数")
    @Data
    public static class UpdateAssessCapacitorParamQuery extends AssessCapacitorParamQuery {

        @ApiModelProperty(value = "电容器组ID（更新时必填），例：b2a0ddf21992416f936b572459a3d8f4", required = true)
        private String capacitorId;
    }
}