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

import lombok.Data;

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

@Data
public class OrgDto {
    private Long orgId;
    private String orgName;
    private String orgCode;
    private Integer isDepartment;
    private Long orgParentId;
    private String orgParentIds;
    private String areaName;
    private String levelFlag;
    private String dName;
    private Boolean isLeaf;
    private Integer statusFlag;
    private Integer delFlag;
    private Integer childCount;
    private Date updateTime;
    private List<OrgDto> children = new ArrayList<>();

    public void addChild(OrgDto child) {
        children.add(child);
    }
}

