计划任务管理

This commit is contained in:
TinyAnts
2022-11-30 22:09:27 +08:00
parent c2a64e30f5
commit 621e7916dc
10 changed files with 241 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
package com.mdd.common.entity;
import lombok.Data;
import java.io.Serializable;
/**
* 计划任务实体
*/
@Data
public class Crontab implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id; // 主键
private String name; // 任务名称
private String command; // 任务命令
private String rules; // 任务规则
private String remark; // 备注信息
private Integer status; // 执行状态1=运行, 2-停止, 3=错误
private Integer isDelete; // 是否删除: 0=否, 1=是
private Long createTime; // 创建时间
private Long updateTime; // 更新时间
private Long deleteTime; // 删除时间
}

View File

@@ -0,0 +1,12 @@
package com.mdd.common.mapper;
import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.Crontab;
import org.apache.ibatis.annotations.Mapper;
/**
* 计划任务Mapper
*/
@Mapper
public interface CrontabMapper extends IBaseMapper<Crontab> {
}