定时任务&角色管理添加更多操作按钮

This commit is contained in:
RuoYi
2020-03-20 13:21:30 +08:00
parent 6fa8c991b8
commit 55da596a80
6 changed files with 61 additions and 17 deletions

View File

@ -179,12 +179,11 @@ public class SysJobServiceImpl implements ISysJobService
public void run(SysJob job) throws SchedulerException
{
Long jobId = job.getJobId();
String jobGroup = job.getJobGroup();
SysJob properties = selectJobById(job.getJobId());
SysJob tmpObj = selectJobById(job.getJobId());
// 参数
JobDataMap dataMap = new JobDataMap();
dataMap.put(ScheduleConstants.TASK_PROPERTIES, properties);
scheduler.triggerJob(ScheduleUtils.getJobKey(jobId, jobGroup), dataMap);
dataMap.put(ScheduleConstants.TASK_PROPERTIES, tmpObj);
scheduler.triggerJob(ScheduleUtils.getJobKey(jobId, tmpObj.getJobGroup()), dataMap);
}
/**