KKSU
2025-01-08 d175d1a66a53a46f182316680afd8a9bf6314ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cc.mrbird.febs.common.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * @author wzy
 * @date 2021-09-16
 **/
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
 
    private Integer revision = 1;
 
    private String createdBy = "system";
 
    private String updatedBy = "system";
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime = new Date();
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime = new Date();
 
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
}