ArbillTask.java 688 B

1234567891011121314151617181920212223242526
  1. package com.uas.eis.task;
  2. import com.uas.eis.service.SendArbillmailService;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.scheduling.annotation.Scheduled;
  5. import org.springframework.stereotype.Component;
  6. /**
  7. * Created by luhg on 2018/4/26.
  8. * 销售订单
  9. */
  10. @Component
  11. public class ArbillTask {
  12. @Autowired
  13. SendArbillmailService sendArbillmailService;
  14. @Scheduled(cron = "0 10 14 * * ?")
  15. public void sendArbill_sz() {
  16. sendArbillmailService.send_abillmailbymaster_sz();
  17. }
  18. @Scheduled(cron = "0 15 14 * * ?")
  19. public void sendArbill_hk() {
  20. sendArbillmailService.send_abillmailbymaster_hk();
  21. }
  22. }