无关风月
2025-06-17 727c924dd3e85aa4f277106dd1bd54a758fc3d22
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
30
31
32
33
package com.ruoyi.system.task.jobs;
 
import com.ruoyi.system.task.base.AbstractJob;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
 
/**
 * 发票定时任务
 * @author Administrator
 *
 */
public class CreateInspectionJob extends AbstractJob {
    
    public static final String name = "createInspection_";
    
    @Override
    public void execute(JobExecutionContext context)
            throws JobExecutionException {
        JobDataMap maps = context.getMergedJobDataMap();
        String templateId = maps.getString("id");
        try {
 
            // 查询模板
 
 
            System.err.println("执行定时任务");
        }catch(Exception e){
            e.printStackTrace();
        }
    }
 
}