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

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 com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.serializer.BigDecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 运行异常转供待转供路径明细信息表
 *
 * @author lihao
 * @since 2025-07-05
 */
@TableName("fhzg_operation_abnormality_await_transfer_path_detail")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FhzgOperationAbnormalityAwaitTransferPathDetail implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "运行异常ID")
    @TableField("oa_id")
    private Long oaId;

    @ApiModelProperty(value = "待转供类型：1-被带供，2-带供")
    @TableField("transfer_type")
    private String transferType;

    @ApiModelProperty(value = "线路ID")
    @TableField("line_id")
    private String lineId;

    @ApiModelProperty(value = "异常馈线ID")
    @TableField("line_name")
    private String lineName;

    @ApiModelProperty(value = "合环开关ID")
    @TableField("close_switch_id")
    private String closeSwitchId;

    @ApiModelProperty(value = "合环开关名称")
    @TableField("close_switch_name")
    private String closeSwitchName;

    @ApiModelProperty(value = "转供前电流")
    @TableField("before_current")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal beforeCurrent;

    @ApiModelProperty(value = "转供后电流")
    @TableField("after_current")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal afterCurrent;

    @ApiModelProperty(value = "额定电流")
    @TableField("rated_current")
    private BigDecimal ratedCurrent;

    @ApiModelProperty(value = "转供前最大负载率")
    @TableField("before_load_factor")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal beforeLoadFactor;

    @ApiModelProperty(value = "转供后最大负载率")
    @TableField("after_load_factor")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal afterLoadFactor;

    @ApiModelProperty(value = "负载率变化值")
    @TableField("load_change")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal loadChange;

    @ApiModelProperty(value = "分组线路ID")
    @TableField("group_line_id")
    private String groupLineId;

    @ApiModelProperty(value = "创建人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("creator")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后一次修改人")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("last_editor")
    private Long lastEditor;

    @ApiModelProperty(value = "最后一次修改时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("last_time")
    private LocalDateTime lastTime;

    @ApiModelProperty(value = "负荷调整（A）")
    @TableField("current_change")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal currentChange;

}
