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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.model.entity.FhzgBaseEntity;
import com.hdkj.lt.base.serializer.StringFormatSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@TableName("fhzg_plan_transfer_scheme_switching_loop_seg_current_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class FhzgPlanTransferSchemeSwitchingLoopSegCurrentDetail extends FhzgBaseEntity {

    /**
     * 开关动作ID(fhzg_plan_transfer_scheme_switching_sequence.id)
     */
    @TableField("switching_id")
    private Long switchingId;

    /**
     * 导线段ID(hotXferSafetyCheckResult对应segmentLoopCheckResult的segPSRID)
     */
    @TableField("segment_id")
    private String segmentId;

    /**
     * 导线段名称(hotXferSafetyCheckResult对应segmentLoopCheckResult的segName)
     */
    @TableField("segment_name")
    private String segmentName;

    /**
     * 所属线路ID
     */
    @TableField("line_id")
    private String lineId;

    /**
     * 所属线路名称(依据拓扑表，可快速找到所属线路)
     */
    @TableField("line_name")
    private String lineName;

    /**
     * 导线标定载流量(A)
     */
    @TableField("segment_rated_ampacity")
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    private String segmentRatedAmpacity;

    /**
     * 合环前电流A(hotXferSafetyCheckResult对应breakerLoopCheckResult的beforeL)
     */
    @TableField("pre_loop_close_current")
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    private String preLoopCloseCurrent;

    /**
     * 解环后电流A(hotXferSafetyCheckResult对应breakerLoopCheckResult的afterL)
     */
    @TableField("loop_open_current")
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    private String loopOpenCurrent;

    /**
     * 导线段电流判定阈值
     */
    @TableField("current_threshold")
    private String currentThreshold;

    /**
     * 导线段电流校验结果:1-通过，0-不通过
     */
    @TableField("segment_current_check")
    private String segmentCurrentCheck;

    /**
     * 合环中电流A
     */
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    @TableField("loop_close_current")
    private String loopCloseCurrent;

    /**
     * 裕度值
     */
    @TableField("margin_value")
    private String marginValue;

}
