liujie
6 天以前 5b883298571421132edf68cab7a22ab16a1f0a6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.ruoyi.system.task.base;
 
import com.aizuda.bpm.mybatisplus.mapper.FlwTaskActorMapper;
import com.aizuda.bpm.mybatisplus.mapper.FlwTaskMapper;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.system.service.TSysLiveService;
import com.ruoyi.system.task.utils.SpringContextsUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 
public abstract class AbstractJob implements Job{
    protected Logger logger = LoggerFactory.getLogger(getClass());
 
    @Override
    public abstract void execute(JobExecutionContext context) throws JobExecutionException;
 
    protected ISysUserService sysUserService;
    protected TSysLiveService sysLiveService;
 
    public AbstractJob(){
        this.sysUserService = SpringContextsUtil.getBean(ISysUserService.class);
        this.sysLiveService = SpringContextsUtil.getBean(TSysLiveService.class);
    }
 
     
}