package com.dsh.course.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
@Data
|
public class BaseBean {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
@TableField("id")
|
private Integer id;
|
/**
|
* 1:正常,2:停用,3:删除
|
*/
|
@TableField("flag")
|
private Integer flag;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date insertTime;
|
/**
|
* 添加人员
|
*/
|
@TableField("insertUser")
|
private Integer insertUser;
|
/**
|
* 修改时间
|
*/
|
@TableField("updateTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date updateTime;
|
/**
|
* 修改人员
|
*/
|
@TableField("updateUser")
|
private Integer updateUser;
|
|
public BaseBean() {
|
Date date = new Date();
|
this.flag = 1;
|
this.insertTime = date;
|
}
|
|
}
|