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_transfer_scheme_transfer_situation")
public class FaultTransferSchemeTransferSituation implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 方案编码
     */
    @TableField("scheme_id")
    private Long schemeId;

    /**
     * 可转供负荷
     */
    @TableField("transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal transferableLoad;

    /**
     * 可转供户数
     */
    @TableField("transferable_users")
    private Integer transferableUsers;

    /**
     * 不可转供负荷
     */
    @TableField("non_transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal nonTransferableLoad;

    /**
     * 不可转供户数
     */
    @TableField("non_transferable_users")
    private Integer nonTransferableUsers;

    /**
     * 敏感用户可转供负荷
     */
    @TableField("sensitive_transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal sensitiveTransferableLoad;

    /**
     * 敏感用户可转供户数
     */
    @TableField("sensitive_transferable_users")
    private Integer sensitiveTransferableUsers;

    /**
     * 敏感用户不可转供负荷
     */
    @TableField("sensitive_non_transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal sensitiveNonTransferableLoad;

    /**
     * 敏感用户不可转供户数
     */
    @TableField("sensitive_non_transferable_users")
    private Integer sensitiveNonTransferableUsers;

    /**
     * 重要用户可转供负荷
     */
    @TableField("important_transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal importantTransferableLoad;

    /**
     * 重要用户可转供户数
     */
    @TableField("important_transferable_users")
    private Integer importantTransferableUsers;

    /**
     * 重要用户不可转供负荷
     */
    @TableField("important_non_transferable_load")
    @JsonSerialize(using = BigDecimalSerializer.Keep6DecimalSerializer.class)
    private BigDecimal importantNonTransferableLoad;

    /**
     * 重要用户不可转供户数
     */
    @TableField("important_non_transferable_users")
    private Integer importantNonTransferableUsers;

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

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

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

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

    /**
     * 损失户数
     */
    @TableField(exist = false)
    private Long loseUsers;

}
