package com.moral.api.pojo.bean; import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.FieldStrategy; import com.baomidou.mybatisplus.annotation.TableField; import lombok.Getter; import java.io.Serializable; import java.util.Date; /** * @ClassName BaseUpdateEntity * @Description TODO * @Author @cjl * @Date 2023-09-25 10:57 * @Version 1.0 */ @Getter @SuppressWarnings("unchecked") public abstract class BaseUpdateEntity extends BaseCreateEntity{ /** * 更新人ID */ @TableField(fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL) private Integer updateId; /** * 更新人姓名 */ @TableField(fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL) private String updateName; /** * 更新时间 */ @TableField(fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL) private Date updateTime; public T setUpdateId(Integer updateId) { this.updateId = updateId; return (T) this; } public T setUpdateName(String updateName) { this.updateName = updateName; return (T) this; } public T setUpdateTime(Date updateTime) { this.updateTime = updateTime; return (T) this; } }