package com.sqx.modules.firstLogin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sqx.modules.industry.entity.Industry;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class Department implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(value = "department_id", type = IdType.AUTO)
    private Long departmentId;

    /**
     * 部门名称
     */
    @TableField(condition = SqlCondition.LIKE)
    private String departmentName;

    /**
     * 是否启用 0不启用 1启用
     */
    private Integer isEnable;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 更新时间
     */
    private  String  updateTime;

    @TableField(exist = false)
    private List<Industry> childrenList;
}
