| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package cn.com.lzt.personnelbasearchivesmanage.timertask;
- import java.util.Date;
- import org.jeecgframework.core.util.ApplicationContextUtil;
- import org.quartz.Job;
- import org.quartz.JobExecutionContext;
- import org.quartz.JobExecutionException;
- import org.springframework.stereotype.Service;
- import cn.com.lzt.personnelbasearchivesmanage.service.PersonnelBaseArchivesManageServiceI;
- /**
- *
- * @ClassName:DealContractMessageExpirationAlertTask 处理合同到期提醒定时任务类
- * @Description: TODO
- * @author zhijia.wang
- * @date 2018-01-18 14:12:30
- *
- */
- @Service("dealContractMessageExpirationAlertTask")
- public class DealContractMessageExpirationAlertTask implements Job{
-
- /**
- * 处理合同到期提醒定时任务
- * dealContractMessageExpirationAlert
- * @author zbw
- * 2018-1-8
- */
- public void dealContractMessageExpirationAlert() {
- long start = System.currentTimeMillis();
- org.jeecgframework.core.util.LogUtil.info("===================处理合同到期提醒定时任务开始===================");
- try {
- System.out.println("===================处理合同到期提醒定时任务开始"+new Date());
-
- PersonnelBaseArchivesManageServiceI archivesManageServiceI = ApplicationContextUtil
- .getContext().getBean(PersonnelBaseArchivesManageServiceI.class);
-
- archivesManageServiceI.dealContractMessageExpirationAlert();
- System.out.println("===================处理合同到期提醒定时任务结束"+new Date());
- } catch (Exception e) {
- e.printStackTrace();
- }
- org.jeecgframework.core.util.LogUtil.info("===================处理合同到期提醒定时任务结束===================");
- long end = System.currentTimeMillis();
- long times = end - start;
- org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
- }
- @Override
- public void execute(JobExecutionContext arg0) throws JobExecutionException {
- dealContractMessageExpirationAlert();
- }
-
- }
|