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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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_await_transfer_switch_section")
public class FaultAwaitTransferSwitchSection implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

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

    /**
     * 开关段名称
     */
    @TableField("switch_name")
    private String switchName;

    /**
     * 起点开关ID
     */
    @TableField("start_switch_id")
    private String startSwitchId;

    /**
     * 起点开关名称
     */
    @TableField("start_switch_name")
    private String startSwitchName;

    /**
     * 起点开关类型
     */
    @TableField("start_switch_type")
    private String startSwitchType;

    /**
     * 终点开关ID(多个,拼接)
     */
    @TableField("end_switch_id")
    private String endSwitchId;

    /**
     * 终点开关名称(多个,拼接)
     */
    @TableField("end_switch_name")
    private String endSwitchName;

    /**
     * 负荷（MW）(开关段内用户负荷(用功功率)累加)
     */
    @TableField("switch_loads")
    private BigDecimal switchLoads;

    /**
     * 创建人
     */
    @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("area_psr_id")
    private String areaPsrId;

    /**
     * 负荷开关段id(psrId)
     */
    @TableField(value = "load_switch_id", exist = false)
    private String loadSwitchId;

    /**
     * 负荷开关段名称
     */
    @TableField(value = "load_switch_name", exist = false)
    private String loadSwitchName;

    /**
     * 配变id
     */
    @TableField(exist = false)
    private String psrId;

    /**
     * 中间开关段ID
     */
    @TableField(exist = false)
    private String midSwitchId;

}
