5d5aa52655d3d40f982e051820fbfc74677ac1d4.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.chinacreator.process.job;
  2. import org.quartz.*;
  3. import org.apache.log4j.*;
  4. import com.chinacreator.process.dao.*;
  5. import org.springframework.beans.factory.annotation.*;
  6. import com.chinacreator.process.service.*;
  7. import java.util.*;
  8. import com.chinacreator.process.bean.*;
  9. @PersistJobDataAfterExecution
  10. @DisallowConcurrentExecution
  11. public class GDtencentBillRetryJob
  12. {
  13. private static Logger log;
  14. @Autowired
  15. private TencentBillDao dao;
  16. @Autowired
  17. private TencentBillService service;
  18. static {
  19. GDtencentBillRetryJob.log = Logger.getLogger((Class)GDtencentBillRetryJob.class);
  20. }
  21. public void doProcess() throws Exception {
  22. final long stime = System.currentTimeMillis();
  23. try {
  24. final List<TencentBillLog> list = this.dao.existBillLogAgain3();
  25. if (list != null && list.size() > 0) {
  26. for (final TencentBillLog log : list) {
  27. final TencentBillChannel ch = this.dao.existChannel(log.getCpid(), log.getSpid());
  28. this.service.BillRetry3(ch, log);
  29. }
  30. }
  31. }
  32. catch (Exception e) {
  33. e.printStackTrace();
  34. }
  35. try {
  36. final List<TencentBillLog> list = this.dao.existBillLogAgain4();
  37. if (list != null && list.size() > 0) {
  38. for (final TencentBillLog log : list) {
  39. final TencentBillChannel ch = this.dao.existChannel(log.getCpid(), log.getSpid());
  40. this.service.BillRetry4(ch, log);
  41. }
  42. }
  43. }
  44. catch (Exception e) {
  45. e.printStackTrace();
  46. }
  47. GDtencentBillRetryJob.log.info((Object)("\u91cd\u65b0\u5bf9\u8d26\u65f6\u957f====" + (System.currentTimeMillis() - stime)));
  48. }
  49. }