package com.zhongshu.card.server.core.dao.schedule;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.server.core.domain.schedule.ScheduleLog;
import com.zhongshu.card.server.core.domain.schedule.ScheduleTaskConfig;

import java.util.List;

/**
 * 定时任务执行日志
 *
 * @author TRX
 * @date 2024/3/21
 */
public interface ScheduleLogDao extends MongoDao<ScheduleLog> {

    ScheduleLog findTopById(String id);

    List<ScheduleLog> findByScheduleTaskConfigAndCreateTimeBetweenAndStatus(ScheduleTaskConfig scheduleTaskConfig, Long begin, Long end, Integer status);

}
