From 4cc29e344a20cd64cfba3961589daf4026ad38f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=B2=90?= Date: Tue, 11 Oct 2022 11:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97=E6=8A=A5=E9=94=99BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/maku/quartz/entity/ScheduleJobEntity.java | 52 +++++++++++++++++++--- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/maku-boot-module/maku-boot-quartz/src/main/java/net/maku/quartz/entity/ScheduleJobEntity.java b/maku-boot-module/maku-boot-quartz/src/main/java/net/maku/quartz/entity/ScheduleJobEntity.java index 9bc40c3..5ece222 100644 --- a/maku-boot-module/maku-boot-quartz/src/main/java/net/maku/quartz/entity/ScheduleJobEntity.java +++ b/maku-boot-module/maku-boot-quartz/src/main/java/net/maku/quartz/entity/ScheduleJobEntity.java @@ -1,11 +1,10 @@ package net.maku.quartz.entity; -import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.*; import lombok.Data; -import lombok.EqualsAndHashCode; -import net.maku.framework.common.entity.BaseEntity; import java.io.Serializable; +import java.util.Date; /** * 定时任务 @@ -13,12 +12,17 @@ import java.io.Serializable; * @author 阿沐 babamu@126.com */ @Data -@EqualsAndHashCode(callSuper=false) @TableName("schedule_job") -public class ScheduleJobEntity extends BaseEntity implements Serializable { +public class ScheduleJobEntity implements Serializable { private static final long serialVersionUID = 1L; /** + * id + */ + @TableId + private Long id; + + /** * 任务名称 */ private String jobName; @@ -63,4 +67,42 @@ public class ScheduleJobEntity extends BaseEntity implements Serializable { */ private String remark; + /** + * 创建者 + */ + @TableField(fill = FieldFill.INSERT) + private Long creator; + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private Date createTime; + + /** + * 更新者 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Long updater; + + /** + * 更新时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private Date updateTime; + + /** + * 版本号 + */ + @Version + @TableField(fill = FieldFill.INSERT) + private Integer version; + + /** + * 删除标记 + */ + @TableLogic + @TableField(fill = FieldFill.INSERT) + private Integer deleted; + } \ No newline at end of file