fix 重启恢复任务
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.tailbet.mapper;
|
||||
|
||||
import com.tailbet.model.entity.PendingTask;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 延迟任务Mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface PendingTaskMapper extends BaseMapper<PendingTask> {
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 延迟任务表
|
||||
*/
|
||||
@Data
|
||||
@TableName("pending_task")
|
||||
public class PendingTask {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 任务ID
|
||||
*/
|
||||
private String taskId;
|
||||
|
||||
/**
|
||||
* 任务类型: start_rp/settle/auto_next/bot_send_rp
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 局ID
|
||||
*/
|
||||
private Long roundId;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 开奖尾数(settle任务用)
|
||||
*/
|
||||
private Integer digit;
|
||||
|
||||
/**
|
||||
* 执行时间
|
||||
*/
|
||||
private LocalDateTime executeTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
Reference in New Issue
Block a user