春风项目四线(合箱线、总装线)
jiang
2024-01-30 79370218e152be17382e792c3cab98e2f1a5a587
提交 | 用户 | 时间
fd2207 1 package com.jcdm.quartz.service.impl;
2
3 import java.util.List;
4 import org.springframework.beans.factory.annotation.Autowired;
5 import org.springframework.stereotype.Service;
6 import com.jcdm.quartz.domain.SysJobLog;
7 import com.jcdm.quartz.mapper.SysJobLogMapper;
8 import com.jcdm.quartz.service.ISysJobLogService;
9
10 /**
11  * 定时任务调度日志信息 服务层
12  * 
13  * @author jc
14  */
15 @Service
16 public class SysJobLogServiceImpl implements ISysJobLogService
17 {
18     @Autowired
19     private SysJobLogMapper jobLogMapper;
20
21     /**
22      * 获取quartz调度器日志的计划任务
23      * 
24      * @param jobLog 调度日志信息
25      * @return 调度任务日志集合
26      */
27     @Override
28     public List<SysJobLog> selectJobLogList(SysJobLog jobLog)
29     {
30         return jobLogMapper.selectJobLogList(jobLog);
31     }
32
33     /**
34      * 通过调度任务日志ID查询调度信息
35      * 
36      * @param jobLogId 调度任务日志ID
37      * @return 调度任务日志对象信息
38      */
39     @Override
40     public SysJobLog selectJobLogById(Long jobLogId)
41     {
42         return jobLogMapper.selectJobLogById(jobLogId);
43     }
44
45     /**
46      * 新增任务日志
47      * 
48      * @param jobLog 调度日志信息
49      */
50     @Override
51     public void addJobLog(SysJobLog jobLog)
52     {
53         jobLogMapper.insertJobLog(jobLog);
54     }
55
56     /**
57      * 批量删除调度日志信息
58      * 
59      * @param logIds 需要删除的数据ID
60      * @return 结果
61      */
62     @Override
63     public int deleteJobLogByIds(Long[] logIds)
64     {
65         return jobLogMapper.deleteJobLogByIds(logIds);
66     }
67
68     /**
69      * 删除任务日志
70      * 
71      * @param jobId 调度日志ID
72      */
73     @Override
74     public int deleteJobLogById(Long jobId)
75     {
76         return jobLogMapper.deleteJobLogById(jobId);
77     }
78
79     /**
80      * 清空任务日志
81      */
82     @Override
83     public void cleanJobLog()
84     {
85         jobLogMapper.cleanJobLog();
86     }
87 }