@Data
public class BaseEntityPlus implements Serializable {
private static final long serialVersionUID = 7621168359132150516L;
/** 创建时间 */
@TableField(fill = FieldFill.INSERT)
private java.time.LocalDateTime createTime;
@TableField(fill = FieldFill.INSERT)
private String createBy;
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@TableField(fill = FieldFill.INSERT_UPDATE)
private java.time.LocalDateTime updateTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private String updateBy;
@TableLogic
@TableField(fill = FieldFill.INSERT)
private String delFlag;
@TableField(exist = false)
private Map<String, Object> params;
@TableField(exist = false)
private String startTime;
@TableField(exist = false)
private String endTime;
}
标签:INSERT,TableField,实体类,String,继承,private,BaseEntityPlus,FieldFill,fill
From: https://www.cnblogs.com/chunwu822/p/16880530.html