ModifyTask.java 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package cn.com.lzt.leave.timeTask;
  2. import java.util.Date;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import cn.com.lzt.leave.service.ModifyServiceI;
  6. //@Service("modifyTask")
  7. public class ModifyTask{
  8. // @Autowired
  9. // private ModifyServiceI modifyService;
  10. //
  11. // /**
  12. // * 离职定时任务
  13. // */
  14. // public void modifyApplyLeave(){
  15. // long start = System.currentTimeMillis();
  16. // org.jeecgframework.core.util.LogUtil.info("===================离职修改定时任务开始===================");
  17. // try {
  18. // System.out.println("===================人事申请-离职申请定时任务开始"+new Date());
  19. // modifyService.modifyUpdateLeave();
  20. // System.out.println("===================人事申请-离职申请定时任务结束"+new Date());
  21. // } catch (Exception e) {
  22. // }
  23. // org.jeecgframework.core.util.LogUtil.info("===================离职修改定时任务结束===================");
  24. // long end = System.currentTimeMillis();
  25. // long times = end - start;
  26. // org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
  27. // }
  28. //
  29. // /**
  30. // * 转正定时任务
  31. // */
  32. // public void modifyApplyCorr(){
  33. // long start = System.currentTimeMillis();
  34. // org.jeecgframework.core.util.LogUtil.info("===================转正修改定时任务开始===================");
  35. // try {
  36. // System.out.println("===================人事申请-转正申请定时任务开始"+new Date());
  37. // modifyService.modifyUpdateCorr();
  38. // System.out.println("===================人事申请-转正申请定时任务结束"+new Date());
  39. // } catch (Exception e) {
  40. // }
  41. // org.jeecgframework.core.util.LogUtil.info("===================转正修改定时任务结束===================");
  42. // long end = System.currentTimeMillis();
  43. // long times = end - start;
  44. // org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
  45. // }
  46. //
  47. //
  48. // /**
  49. // * 平调调动定时任务
  50. // */
  51. // public void modifySameleveltransfer(){
  52. // long start = System.currentTimeMillis();
  53. // org.jeecgframework.core.util.LogUtil.info("===================平调调动修改部门定时任务开始===================");
  54. // try {
  55. // System.out.println("===================人事申请-调动申请-人事平调定时任务开始"+new Date());
  56. // modifyService.modifySameleveltransfer();
  57. // System.out.println("===================人事申请-调动申请-人事平调定时任务结束"+new Date());
  58. // } catch (Exception e) {
  59. // }
  60. // org.jeecgframework.core.util.LogUtil.info("===================平调调动修改部门定时任务结束===================");
  61. // long end = System.currentTimeMillis();
  62. // long times = end - start;
  63. // org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
  64. // }
  65. // /**
  66. // * 升职调动定时任务
  67. // */
  68. // public void modifyPromotiontransfer(){
  69. // long start = System.currentTimeMillis();
  70. // org.jeecgframework.core.util.LogUtil.info("===================升职调动修改部门定时任务开始===================");
  71. // try {
  72. // System.out.println("===================人事申请-调动申请-人事晋升定时任务开始"+new Date());
  73. // modifyService.modifyPromotiontransfer();
  74. // System.out.println("===================人事申请-调动申请-人事晋升定时任务结束"+new Date());
  75. // } catch (Exception e) {
  76. // }
  77. // org.jeecgframework.core.util.LogUtil.info("===================升职调动修改部门定时任务结束===================");
  78. // long end = System.currentTimeMillis();
  79. // long times = end - start;
  80. // org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
  81. // }
  82. // /**
  83. // * 降职调动定时任务
  84. // */
  85. // public void modifyDemotetransfer(){
  86. // long start = System.currentTimeMillis();
  87. // org.jeecgframework.core.util.LogUtil.info("===================降职调动修改部门定时任务开始===================");
  88. // try {
  89. // System.out.println("===================人事申请-调动申请-人事降职定时任务开始"+new Date());
  90. // modifyService.modifyDemotetransfer();
  91. // System.out.println("===================人事申请-调动申请-人事降职定时任务结束"+new Date());
  92. // } catch (Exception e) {
  93. // }
  94. // org.jeecgframework.core.util.LogUtil.info("===================降职调动修改部门定时任务结束===================");
  95. // long end = System.currentTimeMillis();
  96. // long times = end - start;
  97. // org.jeecgframework.core.util.LogUtil.info("总耗时"+times+"毫秒");
  98. // }
  99. }