Update_PlayerJob.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8. using FCS.Common;
  9. using FCS.Crawler.Basketball;
  10. using FCS.Crawler.ZCLotteryAgainst;
  11. using FCS.Crawler.ZCLotteryGames;
  12. using FCS.Crawler.ZCLotteryGrouping;
  13. using FCS.Crawler.ZCLotteryIP;
  14. using FCS.Crawler.ZCLotteryMatchs;
  15. using FCS.Crawler.ZCLotteryScore;
  16. using FCS.Crawler.ZCLotteryTeam;
  17. using FCS.Crawler.ZCMatchRankingList;
  18. using FCS.Interface;
  19. using Quartz;
  20. namespace FCS.Crawler
  21. {
  22. public class Update_PlayerJob : CommonJob
  23. {
  24. public Update_PlayerJob()
  25. {
  26. logName = "Update_PlayerJob";
  27. }
  28. public void Execute(IJobExecutionContext context)
  29. {
  30. Config = CommonHelper.GetConfigFromDataMap(context.JobDetail.JobDataMap);
  31. Click();
  32. }
  33. public void Click()
  34. {
  35. ThreadPool.SetMaxThreads(200, 200);
  36. CommonHelper.LogBD("开始Update_PlayerJob", logName);
  37. new IPJob().GetIP();
  38. new FootBallTeamsJob().GetAll();
  39. new FootballPlayerJob().GetAll();
  40. new GoalSingleDbListJob().Click();
  41. new MakeBallListJob().Click();
  42. new RankingListJob().Click();
  43. new ShooterListJob().Click();
  44. new UpperLlowerSingleDoubleJob().Click();
  45. new B_MakeBallRankingJob().Click();
  46. new B_SizeBallRankingJob().Click();
  47. new B_TeamStatisticsJob().Click();
  48. new B_LeagueRankingJob().Click();
  49. while (true)
  50. {
  51. if (CommonHelper.ThreadsFinsh())
  52. break;
  53. }
  54. CommonHelper.LogBD("Update_PlayerJob完成", logName);
  55. }
  56. }
  57. }