济菏高速数据中心代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
772 B

package com.zc.business.utils;
import com.ruoyi.quartz.domain.SysJob;
import com.ruoyi.quartz.util.AbstractQuartzJob;
import com.zc.business.domain.DcBatchFunctionsJob;
import com.zc.business.task.ScheduledTaskSchedulingTask;
import org.quartz.JobExecutionContext;
public class ScheduledTaskScheduling extends AbstractQuartzJob {
@Override
protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception {
ScheduledTaskSchedulingTask scheduledTaskSchedulingTask = new ScheduledTaskSchedulingTask();
DcBatchFunctionsJob dcBatchFunctionsJob = new DcBatchFunctionsJob();
dcBatchFunctionsJob.setJobId(Math.toIntExact(sysJob.getJobId()));
scheduledTaskSchedulingTask.invokeTarget(dcBatchFunctionsJob);
}
}