package com.ruoyi.lavorissue.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
import java.util.List;
|
|
/**
|
* @author :yys
|
* @date : 2025/11/19 11:58
|
*/
|
@Data
|
@TableName("dept_position")
|
public class DeptPosition {
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@ApiModelProperty("父id")
|
private Long parentId;
|
|
@ApiModelProperty("名称")
|
private String name;
|
|
/**
|
* 类型(1-部门 2-岗位)
|
*/
|
@ApiModelProperty("类型(1-部门 2-岗位)")
|
private Integer type;
|
|
/**
|
* 排序
|
*/
|
@ApiModelProperty("排序")
|
private Integer sort;
|
|
@ApiModelProperty("子数据(岗位)")
|
@TableField(exist = false)
|
private List<DeptPosition> children;
|
|
|
/**
|
* 创建者
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Integer createUser;
|
|
/**
|
* 创建时间
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private LocalDateTime createTime;
|
|
/**
|
* 修改者
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private Integer updateUser;
|
|
/**
|
* 修改时间
|
*/
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
private LocalDateTime updateTime;
|
|
/**
|
* 租户ID
|
*/
|
@TableField(fill = FieldFill.INSERT)
|
private Long tenantId;
|
|
|
}
|