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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.serializer.BigDecimalSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author luorui
 * @date 2025/5/17 8:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FhzgFaultTransferSchemeOppositeLineLoadFactorDTO implements Serializable {

    /**
     * 主建ID
     */
    private Long id;
    /**
     * 计划停电区域方案ID(fhzg_fault_transfer_scheme.id)
     */
    private Long schemeId;
    /**
     * 对侧联络线路ID(finalStateSafetyCheckResult的feederSafetyCheckResult的bFdPSRID)
     */
    private String oppositeLineId;
    /**
     * 对侧联络线路名称(finalStateSafetyCheckResult的feederSafetyCheckResult的bFdPSRID对应名称)
     */
    private String oppositeLineName;
    /**
     * 转供后计算电流值(接口暂未提供)
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal calculatedCurrent;
    /**
     * 额定电流(台账设备字段信息)
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal ratedCurrent;
    /**
     * 负载率(计算:calculated_current/rated_current*100)
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal loadFactor;

    /**
     * 转供前对侧负载
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal beforeLoadFactor;
    /**
     *  转供后主变负载
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal beforeMainTransformerLoadFactor;
    /**
     * 转供前主变负载
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal afterMainTransformerLoadFactor;

}
