package com.njcn.device.pms.pojo.po;

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.njcn.db.bo.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import retrofit2.http.Field;

/**
 * <p>
 * 变电站-母线数据中间表
 * </p>
 *
 * @author cdf
 * @since 2023-11-15
 */
@Getter
@Setter
@TableName("pms_mid_ledger")
public class PmsMidLedger extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @TableId
    private String id;

    /**
     * 父节点（0为根节点）
     */
    private String pid;

    /**
     * 上层所有节点
     */
    private String pids;

    /**
     * 运行单位
     */
    private String section;

    @TableField(value = "SectionId")
    private String SectionId;

    @TableField(value = "cityOrg")
    private String cityOrg;

    @TableField(value = "cityOrgName")
    private String cityOrgName;

    @TableField(value = "maintCrew")
    private String maintCrew;

    @TableField(value = "maintCrewName")
    private String maintCrewName;

    private String OperationId;

    private String OperationName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime OperationDate;

    private String AssetNo;
    /**
     * 名称
     */
    private String name;

    /**
     * 等级：0-变电站；1-母线;
     */
    private Integer level;

    /**
     * 排序（默认为0，有特殊排序需要时候人为输入）
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态 0-删除；1-正常；默认正常
     */
    private Integer state;

    /**
     * 运行状态
     */
    private String runStatus;

    /**
     * 电压等级
     */
    private String voltageLevel;


}
