package com.inspect.metadata.prodevmnt.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.inspect.base.core.annotation.Excel;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ProDeviceTypeTreeSelectVO {
    private static final long serialVersionUID = 1L;
    private Long parentId;
    @JsonProperty("devicetypeId")
    private Long deviceTypeId;
    @Excel(
            name = "电力主设备标识-Yes:是；No：否"
    )
    private String powerMainEquFlag;
    @Excel(
            name = "设备类型名称"
    )
    @JsonProperty("devicetypeName")
    private String deviceTypeName;
    @Excel(
            name = "设备编码"
    )
    @JsonProperty("devicetypeCode")
    private String deviceTypeCode;
    @Excel(
            name = "相数,0:无相；1：单项；3：三项"
    )
    private String phaseNum;
    @Excel(
            name = "相别，1: = A相 2: = B相 3: = C相，多个相位，采用“,”分隔"
    )
    private String phase;
    @Excel(
            name = "专业类型"
    )
    private String professionType;
    @Excel(
            name = "专业类型"
    )
    private int level;
    private List<ProDeviceTypeTreeSelectVO> children = new ArrayList<>();

    @Override
    public String toString() {
        return "ProDeviceTypeTreeSelectVO{" +
                "parentId=" + parentId +
                ", deviceTypeId=" + deviceTypeId +
                ", powerMainEquFlag='" + powerMainEquFlag + '\'' +
                ", deviceTypeName='" + deviceTypeName + '\'' +
                ", deviceTypeCode='" + deviceTypeCode + '\'' +
                ", phaseNum='" + phaseNum + '\'' +
                ", phase='" + phase + '\'' +
                ", professionType='" + professionType + '\'' +
                ", level=" + level +
                ", children=" + children +
                '}';
    }
}
