FsCourseTask.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.fs.task;
  2. import com.fs.course.service.IFsCourseWatchLogService;
  3. import com.fs.qw.service.IQwWorkTaskService;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. /**
  8. * 后台统计相关 定时任务
  9. */
  10. @Slf4j
  11. @Service("fsCourseTask")
  12. public class FsCourseTask {
  13. @Autowired
  14. private IFsCourseWatchLogService fsCourseWatchLogService;
  15. @Autowired
  16. private IQwWorkTaskService qwWorkTaskService;
  17. /**
  18. * 添加企微观看日志
  19. * @throws Exception
  20. */
  21. public void addQwWatchLog() throws Exception
  22. {
  23. fsCourseWatchLogService.addCourseWatchLogDayNew();
  24. }
  25. /**
  26. * 企微任务定时更新
  27. * @throws Exception
  28. */
  29. public void qwWorkTask1() throws Exception
  30. {
  31. qwWorkTaskService.addQwWorkByCourse4();
  32. qwWorkTaskService.addQwWorkByCourseLastTime();
  33. }
  34. /**
  35. * 企微待看课和先导课
  36. * @throws Exception
  37. */
  38. public void qwWorkTask2() throws Exception
  39. {
  40. qwWorkTaskService.addQwWorkByCourse();
  41. qwWorkTaskService.addQwWorkByFirstCourse();
  42. }
  43. /**
  44. * 用户大小转
  45. * @throws Exception
  46. */
  47. public void qwWorkTask3() throws Exception
  48. {
  49. qwWorkTaskService.addQwWorkByConversionDay();
  50. }
  51. /**
  52. * 删除过期数据
  53. * @throws Exception
  54. */
  55. public void qwWorkTask4() throws Exception
  56. {
  57. qwWorkTaskService.delQwWorkTaskByOver();
  58. }
  59. }