package com.panzhihua.sangeshenbian.model.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 java.util.List;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2025/2/19 17:40
|
*/
|
@Data
|
@ApiModel
|
@TableName("sgsb_department")
|
public class Department {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@ApiModelProperty("数据ID")
|
private Integer id;
|
/**
|
* 上级id
|
*/
|
@TableField("pid")
|
@ApiModelProperty("上级id")
|
private Integer pid;
|
/**
|
* 单位名称
|
*/
|
@TableField("name")
|
@ApiModelProperty("单位名称")
|
private String name;
|
/**
|
* 层级,最多4层
|
*/
|
@TableField("tier")
|
@ApiModelProperty("层级,最多4层")
|
private Integer tier;
|
|
|
@TableField(exist = false)
|
@ApiModelProperty("下级单位")
|
private List<Department> child;
|
}
|