package com.dcsoft.system.domain;

import com.dcsoft.system.api.domain.SysDept;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dcsoft.common.core.annotation.Excel;
import com.dcsoft.common.core.web.domain.BaseEntity;

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

/**
 * 部门管理对象 sys_branch
 *
 * @author dcsoft
 * @date 2023-03-07
 */
@Data
public class SysBranch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门Id */
    private String id;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String name;

    /** 部门负责人 */
    @Excel(name = "部门负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 父级Id */
    @Excel(name = "父级Id")
    private String parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 所属空间 */
    @Excel(name = "所属空间")
    private Long spaceId;

    private Long deptId;

    private String type;

    /**
     * 规则id
     */
    private Long ruleId;

    /**
     * 梯控规则id
     */
    private String ladderRuleId;



    /** 子部门 */
    private List<SysBranch> children = new ArrayList<SysBranch>();

    private String code;

    private String isSf;

}
