package com.dl.common.core.domain; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.io.Serializable; import java.util.Date; import java.util.HashMap; import java.util.Map; /** * Entity基类 * * @author Lion Li */ @Data public class BaseNewEntity implements Serializable { private static final long serialVersionUID = 1L; /** * 搜索值 */ @JsonIgnore @TableField(exist = false) private String searchValue; @TableField(fill = FieldFill.INSERT) private String createdUserId; @TableField(fill = FieldFill.INSERT) private String createdUserName; @TableField(fill = FieldFill.INSERT) private Date createdDateTime; @TableField(fill = FieldFill.INSERT_UPDATE) private String lastUpdatedUserId; @TableField(fill = FieldFill.INSERT_UPDATE) private String lastUpdatedUserName; @TableField(fill = FieldFill.INSERT_UPDATE) private Date lastUpdatedDateTime; /** * 请求参数 */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @TableField(exist = false) private Map params = new HashMap<>(); }