package com.hdkj.lt.core.bizms.modle.po.fault;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.serializer.BigDecimalSerializer;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 故障停电对侧线路承载能力信息表
 * </p>
 *
 * @author luorui
 * @since 2025-05-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("fhzg_fault_opposite_line_carry_capacity")
public class FaultOppositeLineCarryCapacity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主建ID
     */
    @TableId("id")
    private Long id;

    /**
     * 故障停电ID(fhzg_fault_power_cut.id)
     */
    @TableField("fault_id")
    private Long faultId;

    /**
     * 额定容量
     */
    @TableField("rated_capacity")
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal ratedCapacity;

    /**
     * 额定电流
     */
    @TableField("rated_current")
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal ratedCurrent;

    /**
     * 最大电流
     */
    @TableField("max_current")
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal maxCurrent;

    /**
     * 最大负负载率
     */
    @TableField("max_load_factor")
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal maxLoadFactor;

    /**
     * 可带供容量
     */
    @TableField("deliverable_capacity")
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal deliverableCapacity;

    /**
     * 创建人
     */
    @TableField("creator")
    private Long creator;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 最后一次修改人
     */
    @TableField("last_editor")
    private Long lastEditor;

    /**
     * 最后一次修改时间
     */
    @TableField("last_time")
    private LocalDateTime lastTime;

    /**
     * 对侧线路id
     */
    @TableField("line_id")
    private String lineId;

    /**
     * 对侧线路名称
     */
    @TableField("line_name")
    private String lineName;


}
