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_line_loadfactor_loss")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FhzgOperationAbnormalityLineLoadfactorLoss 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 = "线路编号")
    @TableField("psr_id")
    private String psrId;

    @ApiModelProperty(value = "设备类型")
    @TableField("psr_type")
    private String psrType;

    @ApiModelProperty(value = "线路名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "额定电流（A）")
    @TableField("rate_current")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal rateCurrent;

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

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

    @ApiModelProperty(value = "转供前典型日96时刻电流（A），数组，目前未使用")
    @TableField("before_day_current")
    private BigDecimal beforeDayCurrent;

    @ApiModelProperty(value = "转供前典型日96时刻电流（A），数组，目前未使用")
    @TableField("after_day_current")
    private BigDecimal afterDayCurrent;

    @ApiModelProperty(value = "调优前线路损耗（MW）")
    @TableField("line_loss_before")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal lineLossBefore;

    @ApiModelProperty(value = "调优后线路损耗（MW）")
    @TableField("line_loss_after")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal lineLossAfter;

    @ApiModelProperty(value = "线路损耗差值")
    @TableField("line_loss_change")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal lineLossChange;

    @ApiModelProperty(value = "调优前负载率")
    @TableField("before_factor")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal beforeFactor;

    @ApiModelProperty(value = "调优后负载率")
    @TableField("after_factor")
    @JsonSerialize(using = BigDecimalSerializer.StripTrailingZerosSerializer.class)
    private BigDecimal afterFactor;

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

    @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;
}
