package com.sinata.modular.system.model;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 部门表
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2017-07-11
|
*/
|
@Data
|
@TableName("sys_dept")
|
public class Dept extends Model<Dept> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value="id", type= IdType.AUTO)
|
private Integer id;
|
/**
|
* 排序
|
*/
|
private Integer num;
|
/**
|
* 父部门id
|
*/
|
private Integer pid;
|
/**
|
* 父级ids
|
*/
|
private String pids;
|
/**
|
* 简称
|
*/
|
private String simplename;
|
/**
|
* 全称
|
*/
|
private String fullname;
|
/**
|
* 提示
|
*/
|
private String tips;
|
/**
|
* 版本(乐观锁保留字段)
|
*/
|
private Integer version;
|
/**
|
* 创建时间
|
*/
|
@TableField("create_time")
|
private Date createTime;
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
}
|