|
@@ -4,21 +4,25 @@ import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import lombok.Data;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
+import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
|
|
|
@Data
|
|
|
-public abstract class BaseEntity {
|
|
|
+public abstract class BaseEntity {
|
|
|
|
|
|
@TableId(value="id", type= IdType.AUTO)
|
|
|
private Long id;
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
@TableField(value = "create_time",fill = FieldFill.INSERT)
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
|
|
private Date createTime;
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
@TableField(value = "update_time",fill = FieldFill.UPDATE)
|
|
|
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//set
|
|
|
private Date updateTime;
|
|
|
|
|
|
@TableField(value = "rec_status")
|