package com.lz.modules.app.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Comparator;
import java.util.List;

/**
 * 部门表
 *
 * @author fumeiai
 * @email fumeiai@linzikg.com
 * @date 2020-04-30 16:59:50
 */
@Data
@ApiModel("部门信息Dto")
public class DepartmentsDto implements Serializable{
    private static final long serialVersionUID = 1L;


    /**
     * 飞书部门id
     */
    @ApiModelProperty(value = "部门id，钉钉，飞书部门id", name = "departmentId")
    private String departmentId;
    /**
     * 飞书上级部门id
     */
    @ApiModelProperty(value = "钉钉，飞书上级部门id", name = "departmentParentId")
    private String departmentParentId;
    /**
     * 飞书显示部门人数
     */
    @ApiModelProperty(value = "部门人员数量", name = "memberCount")
    private Integer memberCount;
    /**
     * 组织架构名称/部门名称
     */
    @ApiModelProperty(value = "部门名称", name = "departmentName")
    private String departmentName;
    /**
     * ztree属性
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "部门id", name = "id")
    private Boolean open;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门id", name = "id")
    private List<?> list;
    @ApiModelProperty(value = "部门人员集合", name = "staffDtos")
    private List<StaffDto> staffDtos;

}
