package com.ruoyi.hezhi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

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

/**
 * 职业分类对象 tb_career_class
 *
 * @author ruoyi
 * @date 2024-10-10
 */
@Getter
@Setter
@ToString
public class TbCareerClass extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 职业分类主键ID */
    private Long careerId;

    /** 父级ID */
    @Excel(name = "父级ID")
    private Long pid;

    /** 层级 0 1 2  */
    @Excel(name = "层级 0 1 2 ")
    private Integer level;

    /** 类型（0-全部） */
    @Excel(name = "类型", readConverterExp = "0=-全部")
    private Integer type;

    /** logo1 */
    @Excel(name = "logo1")
    private String careerLogoOne;

    /** logo2 */
    @Excel(name = "logo2")
    private String careerLogoTwo;

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

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 状态（0-显示，1-隐藏） */
    @Excel(name = "状态", readConverterExp = "0=-显示，1-隐藏")
    private Integer status;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publicationTime;

    /** 发布人 */
    @Excel(name = "发布人")
    private String publisher;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除标记（0-正常，1-删除） */
    @Excel(name = "删除标记", readConverterExp = "0=-正常，1-删除")
    private Integer delFlag;

    private List<TbCareerClass> childrenList;
}
