xm
2024-06-14 722af26bc6fec32bb289b1df51a9016a4935610f
提交 | 用户 | 时间
722af2 1 package com.xxl.job.admin.dao;
X 2
3 import com.xxl.job.admin.core.model.XxlJobInfo;
4 import org.apache.ibatis.annotations.Mapper;
5 import org.apache.ibatis.annotations.Param;
6
7 import java.util.List;
8
9
10 /**
11  * job info
12  *
13  * @author xuxueli 2016-1-12 18:03:45
14  */
15 @Mapper
16 public interface XxlJobInfoDao {
17
18     public List<XxlJobInfo> pageList(@Param("offset") int offset,
19                                      @Param("pagesize") int pagesize,
20                                      @Param("jobGroup") int jobGroup,
21                                      @Param("triggerStatus") int triggerStatus,
22                                      @Param("jobDesc") String jobDesc,
23                                      @Param("executorHandler") String executorHandler,
24                                      @Param("author") String author);
25
26     public int pageListCount(@Param("offset") int offset,
27                              @Param("pagesize") int pagesize,
28                              @Param("jobGroup") int jobGroup,
29                              @Param("triggerStatus") int triggerStatus,
30                              @Param("jobDesc") String jobDesc,
31                              @Param("executorHandler") String executorHandler,
32                              @Param("author") String author);
33
34     public int save(XxlJobInfo info);
35
36     public XxlJobInfo loadById(@Param("id") int id);
37
38     public int update(XxlJobInfo xxlJobInfo);
39
40     public int delete(@Param("id") long id);
41
42     public List<XxlJobInfo> getJobsByGroup(@Param("jobGroup") int jobGroup);
43
44     public int findAllCount();
45
46     public List<XxlJobInfo> scheduleJobQuery(@Param("maxNextTime") long maxNextTime, @Param("pagesize") int pagesize);
47
48     public int scheduleUpdate(XxlJobInfo xxlJobInfo);
49
50
51 }