package com.hdkj.lt.bf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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 lsl
 * @since 2026-07-30
 */
@TableName("fhzg_se_line_loss_detail")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FhzgSeLineLossDetail implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /** 断面时间 */
    private LocalDateTime snapTime;

    /** 馈线ID */
    private String feederId;

    /** 段ID */
    private String psrId;

    /** 段类型: dxd-导线段, 0201-电缆段 */
    private String psrType;

    /** 区县ID */
    private String countyId;

    /** 变电站ID */
    private String subsId;

    /** 状估电流 kA */
    private BigDecimal currentKa;

    /** 段长度 米 */
    private BigDecimal sbLengthM;

    /** 电阻率 Ω/km */
    private BigDecimal resistivity;

    /** 线损功率 kW */
    private BigDecimal lineLossKw;

    private LocalDateTime createTime;
}
