package net.yyc.quartz.mapper; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.time.LocalDateTime; import java.util.List; import java.util.Map; /** * 简报数据访问接口 */ @Mapper public interface JobBriefingMapper { /** * 按任务ID统计执行情况 */ List> selectJobStatSummary(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime); /** * 查询指定日期有执行记录的任务ID列表 */ List selectExecutedJobIds(@Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime); /** * 查询任务最新一条执行记录 */ Map selectLastExecLog(@Param("jobId") Integer jobId, @Param("endTime") LocalDateTime endTime); }