修复定时任务日志报错BUG

This commit is contained in:
阿沐 2022-10-11 11:14:18 +08:00
parent 3e4544fc75
commit 4cc29e344a

View File

@ -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;
}