| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2017-07-11 |
| | | */ |
| | | @TableName("sys_dept") |
| | | @Data |
| | | public class Dept extends Model<Dept> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @TableId(value="id", type= IdType.AUTO) |
| | | @ApiModelProperty(value = "id", required = false) |
| | | private Integer id; |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @ApiModelProperty(value = "排序", required = true) |
| | | private Integer num; |
| | | /** |
| | | * 父部门id |
| | |
| | | /** |
| | | * 简称 |
| | | */ |
| | | @ApiModelProperty(value = "部门简称", required = true) |
| | | private String simplename; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
| | | private Date insertTime; |
| | | /** |
| | | * 全称 |
| | | */ |
| | | @ApiModelProperty(value = "部门全称", required = true) |
| | | @ApiModelProperty(value = "部门名称", required = true) |
| | | private String fullname; |
| | | /** |
| | | * 提示 |
| | | */ |
| | | @ApiModelProperty(value = "备注", required = false) |
| | | private String tips; |
| | | /** |
| | | * 版本(乐观锁保留字段) |