package com.njcn.product.event.transientes.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: cdf
 * @CreateTime: 2025-07-28
 * @Description:
 */
@Data
@TableName(value = "pq_user_ledger")
public class PqUserLedgerPO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @TableField(value = "id")
    private String id;

    @TableField(value = "POWER_SUPPLY_AREA")
    private String powerSupplyArea;

    @TableField(value = "CUSTOMER_NAME")
    private String customerName;

    @TableField(value = "ELECTRICITY_ADDRESS")
    private String electricityAddress;

    @TableField(value = "INDUSTRY_TYPE")
    private String industryType;

    @TableField(value = "VOLTAGE_LEVEL")
    private String voltageLevel;

    @TableField(value = "IMPORTANT_LEVEL")
    private String importantLevel;

    @TableField(value = "SUBSTATION_NAME")
    private String substationName;

    @TableField(value = "BUSBAR_NAME")
    private String busbarName;

    @TableField(value = "OPERATION_UNIT")
    private String operationUnit;

    @TableField(value = "MANUFACTURER")
    private String manufacturer;

    @TableField(value = "BIG_OBJ_TYPE")
    private String bigObjType;

    @TableField(value = "SMALL_OBJ_TYPE")
    private String smallObjType;

    /**
     * 设备或对象的分类小类
     */
    @TableField(value = "CREATE_BY")
    private String createBy;

    @TableField(value = "UPDATE_BY")
    private String updateBy;


    /**
     * 创建时间（自动填充）
     */
    @TableField(value = "CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 更新时间（自动填充）
     */
    @TableField(value = "UPDATE_TIME")
    private LocalDateTime updateTime;

    @TableField(value = "IS_SHOW")
    private Integer isShow;

    @TableField(exist = false)
    private Integer eventCount = 0;

    @TableField(exist = false)
    private List<String> eventIds;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private String gdName;

    @TableField(exist = false)
    private String station;

    @TableField(exist = false)
    private String info;

    @TableField(exist = false)
    private List<PqsEventdetail> eventList;

}
