nidapeng
2024-04-22 2d34613f07deabbbe7e5065c13eec61cfe2a4dcf
server/dmvisit_service/src/main/java/com/doumee/dao/timer/scheduler/QuartzRecord.java
@@ -1,9 +1,10 @@
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;
@@ -19,8 +20,8 @@
    @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());