Update_PlayerJob.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. }