|
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableId; |
|
|
|
import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
|
|
|
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement; |
|
|
|
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey; |
|
|
|
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
@ -23,11 +24,11 @@ public class SuperEntity implements Serializable { |
|
|
|
/** |
|
|
|
* 创建时间 |
|
|
|
*/ |
|
|
|
@Column(name = "create_time",comment = "创建时间") // name指定数据库字段名,comment为备注
|
|
|
|
@Column(name = "create_time",comment = "创建时间",type = MySqlTypeConstant.DATETIME) // name指定数据库字段名,comment为备注
|
|
|
|
private Date createTime = new Date(); |
|
|
|
/** |
|
|
|
* 最后修改时间 |
|
|
|
*/ |
|
|
|
@Column(name = "update_time",comment = "最后修改时间") |
|
|
|
@Column(name = "update_time",comment = "最后修改时间",type = MySqlTypeConstant.DATETIME) |
|
|
|
private Date updateTime; |
|
|
|
} |
|
|
|