SalsDetailTask.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.kmall.admin.task;
  2. import com.kmall.admin.service.SalesDetailService;
  3. import org.apache.commons.logging.Log;
  4. import org.apache.commons.logging.LogFactory;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.scheduling.annotation.EnableAsync;
  7. import org.springframework.scheduling.annotation.EnableScheduling;
  8. import org.springframework.scheduling.annotation.Scheduled;
  9. import org.springframework.stereotype.Component;
  10. /**
  11. * 线下订单数据推送接口
  12. */
  13. //@Component("salsDetailTask")
  14. //@EnableScheduling
  15. //@EnableAsync
  16. @Deprecated
  17. public class SalsDetailTask {
  18. private static Log logger = LogFactory.getLog(SalsDetailTask.class);
  19. @Autowired
  20. private SalesDetailService salesDetailService;
  21. /**
  22. * 每天向eccs推送销售明细数据
  23. */
  24. // @Scheduled(cron = "0 30 0 * * ?")
  25. public void pushSalesDetailData() {
  26. logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailData is start ");
  27. salesDetailService.pushSalesDetailData();
  28. logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailData is end ");
  29. }
  30. /**
  31. * 每天向eccs重推销售明细数据
  32. */
  33. // @Scheduled(cron = "0 30 0 * * ?")
  34. public void pushSalesDetailDataAgain() {
  35. logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailDataAgain is start ");
  36. salesDetailService.pushSalesDetailDataAgain();
  37. logger.info(">>>>>>>>>>>>>>>>>>>>pushSalesDetailDataAgain is end ");
  38. }
  39. }