package com.njcn.csdevice.pojo.po;

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.njcn.db.bo.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * Description:
 * Date: 2023/5/18  14:01【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "cs_line")
public class CsLinePO  extends BaseEntity {
    /**
     * 监测点id
     */
    @TableId(value = "line_id", type = IdType.ASSIGN_UUID)
    private String lineId;

    /**
     * 装置id
     */
    @TableField(exist = false)
    private String devId;

    /**
     * 监测点名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 字典表：安装位置（负载侧,电网侧, 输出侧）
     */
    @TableField(value = "`position`")
    private String position;

    /**
     * 数据集id
     */
    private String dataSetId;

    /**
     * 模板id
     */
    private String dataModelId;

    /**
     * 电压等级
     */
    @TableField(value = "vol_grade")
    private Double volGrade;

    /**
     * PT变比
     */
    @TableField(value = "pt_ratio")
    private Double ptRatio;

    /**
     * PT2次变比
     */
    @TableField(value = "pt2_ratio")
    private Double pt2Ratio;

    /**
     * CT变比
     */
    @TableField(value = "ct_ratio")
    private Double ctRatio;

    /**
     * CT2变比
     */
    @TableField(value = "ct2_ratio")
    private Double ct2Ratio;

    /**
     * 状态(0：删除 1：正常)
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 接线方式(0-星型 1-角型 2-V型)
     */
    @TableField(value = "conType")
    private Integer conType;

    /**
     * 逻辑子设备id(与模板对应)
     */
    @TableField(value = "clDid")
    private Integer clDid;

    @TableField(value = "device_id")
    private String deviceId;

    /**
     * 监测点统计间隔
     */
    @TableField(value = "line_interval")
    private Integer lineInterval;

    /**
     * 运行状态
     */
    @TableField(value = "run_status")
    private Integer runStatus;

    /**
     * 监测点线路号
     */
    @TableField(value = "line_no")
    private Integer lineNo;
    /**
     * 监测对象类型
     */
    @TableField(value = "monitor_obj")
    private String monitorObj;


    /**
     * 短路容量
     */
    @TableField(value = "short_circuit_capacity")
    private Double shortCircuitCapacity;

    /**
     * 设备容量
     */
    @TableField(value = "dev_capacity")
    private Double devCapacity;

    /**
     * 基准容量
     */
    @TableField(value = "basic_capacity")
    private Double basicCapacity;

    /**
     * 协议容量
     */
    @TableField(value = "protocol_capacity")
    private Double protocolCapacity;

    /**
     * 治理报告文件路径
     */
    @TableField(value = "report_file_path")
    private String reportFilePath;

    /**
     * 日志等级(NORMAL、DEBUG、WARN、ERROR)
     */
    @TableField(value = "line_log_level")
    private String lineLogLevel;

    /**
     * 是否是主要监测点(0: 不是 1:是)
     */
    @TableField(value = "is_important")
    private Integer isImportant;
}
