| | |
| | | package com.doumee.scheduler; |
| | | package com.doumee.dao.timer.scheduler; |
| | | |
| | | import com.doumee.constant.LogState; |
| | | import com.doumee.entity.QuartzJob; |
| | | import com.doumee.entity.QuartzLog; |
| | | import com.doumee.service.QuartzLogService; |
| | | import com.doumee.config.SpringContextUtil; |
| | | import com.doumee.dao.timer.entity.LogState; |
| | | import com.doumee.dao.timer.entity.QuartzJob; |
| | | import com.doumee.dao.timer.entity.QuartzLog; |
| | | import com.doumee.service.timer.QuartzLogService; |
| | | import org.quartz.JobExecutionContext; |
| | | import org.springframework.scheduling.quartz.QuartzJobBean; |
| | | |
| | |
| | | |
| | | @Override |
| | | protected void executeInternal(JobExecutionContext context) { |
| | | QuartzJob quartzJob = (QuartzJob)context.getMergedJobDataMap().get(QuartzJob.JOB_PARAM_KEY) ; |
| | | QuartzLogService quartzLogService = (QuartzLogService)SpringContextUtil.getBean("quartzLogService") ; |
| | | QuartzJob quartzJob = (QuartzJob) context.getMergedJobDataMap().get(QuartzJob.JOB_PARAM_KEY) ; |
| | | QuartzLogService quartzLogService = (QuartzLogService) SpringContextUtil.getBean("quartzLogService") ; |
| | | // 定时器日志记录 |
| | | QuartzLog quartzLog = new QuartzLog () ; |
| | | quartzLog.setJobId(quartzJob.getId()); |