package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

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

/**
 * @Description: 政府内部部门
 * @author： pds
 * @date： 2023-02-15
 * @version： V1.0
 */
@Data
@TableName("system_dept")
@ApiModel(value = "SystemDept实体类", description = "SystemDept")
public class SystemDept implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "部门id(主键ID)")
    private Long deptId;
    /**
     * 父部门id
     */
    @Excel(name = "父部门id", width = 15)
    @ApiModelProperty(value = "父部门id")
    private Integer parentId;
    /**
     * 祖级列表
     */
    @Excel(name = "祖级列表", width = 15)
    @ApiModelProperty(value = "祖级列表")
    private String ancestors;
    /**
     * 部门名称
     */
    @Excel(name = "部门名称", width = 15)
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    /**
     * 显示顺序
     */
    @Excel(name = "显示顺序", width = 15)
    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;
    /**
     * 负责人
     */
    @Excel(name = "负责人", width = 15)
    @ApiModelProperty(value = "负责人")
    private String leader;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;
    /**
     * 邮箱
     */
    @Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "邮箱")
    private String email;
    /**
     * 部门状态（0正常 1停用）
     */
    @Excel(name = "部门状态（0正常 1停用）", width = 15)
    @ApiModelProperty(value = "部门状态（0正常 1停用）")
    private String status;

    /**
     * 部门所属类型
     */
    @Excel(name = "部门所属类型 2.政务;3.企业;4.项目", width = 15)
    @ApiModelProperty(value = "部门所属类型 2.政务;3.企业;4.项目")
    private Integer type;

    /**
     * sn
     */
    @Excel(name = "政务、企业或项目sn", width = 15)
    @ApiModelProperty(value = "政务、企业或项目sn")
    private String sn;


    @TableField(exist = false)
    @ApiModelProperty(value = "子级部门信息")
    private List<SystemDept> children;
}
