package com.ktg.iscs.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 工作区域对象 is_workstation
 *
 * @author cgj
 * @date 2024-12-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsWorkstation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "岗位ID")
    @TableId(type = IdType.AUTO)
    private Long workstationId;

    @ApiModelProperty(value = "岗位编号")
    @Excel(name = "岗位编号")
    private String workstationCode;

    @ApiModelProperty(value = "岗位名称")
    @Excel(name = "岗位名称")
    private String workstationName;

    @ApiModelProperty(value = "岗位类型")
    @Excel(name = "岗位类型")
    private String workstationType;

    @ApiModelProperty(value = "父部门id")
    @Excel(name = "父部门id")
    private Long parentId;

    @ApiModelProperty(value = "祖级列表")
    @Excel(name = "祖级列表")
    private String ancestors;

    @ApiModelProperty(value = "显示顺序")
    @Excel(name = "显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String status;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @TableField(exist = false)
    private Long userId;

}
