package com.junmp.jyzb.api.bean.dto;

import lombok.Data;

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

@Data
public class EquipmentTreeDto {
    private String id;
    private String name;
    private String unit;
    private String unitType;
    private String parentId;
    private String parentIds;
    private String code;
    private Integer state;
    private Integer type;
    private String warrantyPeriod;
    private String maintenancePeriod;
    private Boolean isLeaf;
    private Boolean isContainsName;
    private ArrayList ids;
    //组合类型
    private String combinedTypes;
    private List<EquipmentTreeDto> children = new ArrayList<>();
    private List<EquipmentTreeDto> childrens = new ArrayList<>();
    public void addChildren(EquipmentTreeDto treeDto){
        children.add(treeDto);
    }

}
