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_sw_current_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class FhzgPlanTransferSchemeSwitchingLoopSwCurrentDetail extends FhzgBaseEntity {

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

    /**
     * 开关ID(hotXferSafetyCheckResult对应breakerLoopCheckResult的cbPSRID)
     */
    @TableField("switch_id")
    private String switchId;

    /**
     * 开关名称(hotXferSafetyCheckResult对应breakerLoopCheckResult的cbPSRID对应开关名称)
     */
    @TableField("switch_name")
    private String switchName;

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

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

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

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

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

    /**
     * 开关电流判定阈值(过流III段)
     */
    @TableField("current_threshold")
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    private String currentThreshold;

    /**
     * 过流II段
     */
    @TableField("oc2_value")
    @JsonSerialize(using = StringFormatSerializer.Keep2StringSerializer.class)
    private String oc2Value;

    /**
     * 开关电流校验结果:1-通过，0-不通过
     */
    @TableField("switch_current_check")
    private String switchCurrentCheck;

    /**
     * 开关所属线路额定电流
     */
    @TableField("line_rate_current")
    private String lineRateCurrent;

    /**
     * 开关额定电流
     */
    @TableField("switch_rate_current")
    private String switchRateCurrent;

}
