| | |
| | | package com.dsh.guns.modular.system.util.task.base; |
| | | |
| | | import cn.mb.cloud.common.core.util.SpringContextHolder; |
| | | import com.dsh.guns.modular.system.service.ITDriverService; |
| | | import com.dsh.guns.modular.system.service.ITNoticesService; |
| | | import com.dsh.guns.modular.system.service.ITSystemNoticeService; |
| | | import com.dsh.guns.modular.system.service.ITUserService; |
| | | import org.quartz.Job; |
| | | import org.quartz.JobExecutionContext; |
| | | import org.quartz.JobExecutionException; |
| | |
| | | @Override |
| | | public abstract void execute(JobExecutionContext context) throws JobExecutionException; |
| | | |
| | | protected ITUserService tUserService; //用户 |
| | | protected ITNoticesService tNoticesService; //公告 |
| | | protected ITSystemNoticeService tSystemNoticeService; //公告记录 |
| | | protected ITDriverService tDriverService; //司机 |
| | | |
| | | public AbstractJob(){ |
| | | //this.exhibitionService = SpringContextsUtil.getBean("exhibitionService", IExhibitionService.class); |
| | | this.tUserService = SpringContextHolder.getBean( ITUserService.class); |
| | | this.tNoticesService = SpringContextHolder.getBean( ITNoticesService.class); |
| | | this.tSystemNoticeService = SpringContextHolder.getBean( ITSystemNoticeService.class); |
| | | this.tDriverService = SpringContextHolder.getBean( ITDriverService.class); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |