| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- package cn.com.lzt.personnelbasearchivesmanage.timertask;
- import java.util.Date;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import cn.com.lzt.personnelbasearchivesmanage.service.PersonnelBaseArchivesManageServiceI;
- /**
- *
- * @ClassName:UserContractCertificateTask 处理证书到期提醒、合同到期提醒、人事信息自动转正的定时任务类
- * @Description: TODO
- * @author zhijia.wang
- * @date 2018-01-18 14:13:38
- *
- */
- //@Service("userContractCertificateTask")
- public class UserContractCertificateTask{
- // @Autowired
- // private PersonnelBaseArchivesManageServiceI archivesManageServiceI;
- //
- // /**
- // * 处理证书到期提醒定时任务
- // * dealCertificateMessageExpirationAlert
- // * @author zbw
- // * 2018-1-8
- // */
- // public void dealCertificateMessageExpirationAlert() {
- // long start = System.currentTimeMillis();
- // org.jeecgframework.core.util.LogUtil.info("===================处理证书到期提醒定时任务===================");
- // try {
- // System.out.println("===================处理证书到期提醒定时任务开始"+new Date());
- // archivesManageServiceI.dealCertificateMessageExpirationAlert();
- // 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+"毫秒");
- // }
- //
- // /**
- // * 处理合同到期提醒定时任务
- // * 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());
- // 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+"毫秒");
- // }
- //
- //
- // /**
- // * 人事信息自动转正定时任务
- // * getAllautoCorrection
- // * @author liujie
- // * 2018-1-9
- // */
- // public void getAllautoCorrection() {
- // long start = System.currentTimeMillis();
- // org.jeecgframework.core.util.LogUtil.info("===================自动转正定时任务开始===================");
- // try {
- // System.out.println("===================人事信息自动转正定时任务开始"+new Date());
- // archivesManageServiceI.getAllautoCorrection();
- // 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+"毫秒");
- // }
-
- /*@Scheduled(cron="0 0/1 * * * ?")*/
- /*public void userContractCertificate() {
- long start = System.currentTimeMillis();
- org.jeecgframework.core.util.LogUtil.info("===================员工合同到期证书到期定时任务开始===================");
- try {
- System.out.println("员工合同到期证书到期定时任务执行开始"+new Date());
- archivesManageServiceI.dealMessageExpirationAlert();
- 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+"毫秒");
- }*/
- }
|