| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package cn.com.lzt.leave.timeTask;
- 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.leave.service.ModifyServiceI;
- @Service("modifyDemotetransferTask")
- public class ModifyDemotetransferTask implements Job{
-
- /**
- * 降职调动定时任务
- */
- public void modifyDemotetransfer(){
- long start = System.currentTimeMillis();
- org.jeecgframework.core.util.LogUtil.info("===================降职调动修改部门定时任务开始===================");
- try {
- System.out.println("===================人事申请-调动申请-人事降职定时任务开始"+new Date());
-
- ModifyServiceI modifyService = ApplicationContextUtil
- .getContext().getBean(ModifyServiceI.class);
-
- modifyService.modifyDemotetransfer();
- 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 {
- modifyDemotetransfer();
- }
-
- }
|