提交 c3ab5052 编写于 作者: M monomania

1.xxx

上级 53065b25
...@@ -25,7 +25,7 @@ asia_comp_id= ...@@ -25,7 +25,7 @@ asia_comp_id=
##是否去爬取联赛信息 ##是否去爬取联赛信息
league_switch=false league_switch=false
#配置要抓取的历史数据的赛季年份,使用,间隔 #配置要抓取的历史数据的赛季年份,使用,间隔
history_season=2018,2019 history_season=2015,2016,2017,2018,2019
[analy] [analy]
###确认命中次数 ###确认命中次数
hit_count=3 hit_count=3
......
...@@ -42,12 +42,10 @@ func (this *MatchHisService) FindBySeason(season string) []*pojo.MatchLast { ...@@ -42,12 +42,10 @@ func (this *MatchHisService) FindBySeason(season string) []*pojo.MatchLast {
SELECT SELECT
la.* la.*
FROM FROM
foot.t_match_his la, foot.t_match_his la
foot.t_league l WHERE 1=1
WHERE la.LeagueId = l.Id
AND 1=1
` `
sql_build = sql_build + " AND la.MatchDate > '" + season + "-00-01 :00:00:00'" sql_build = sql_build + " AND la.MatchDate => '" + season + "-01-01 00:00:00' AND la.MatchDate <= '" + season + "-12-31 23:59:59'"
//结果值 //结果值
dataList := make([]*pojo.MatchLast, 0) dataList := make([]*pojo.MatchLast, 0)
......
...@@ -3,6 +3,7 @@ package launch ...@@ -3,6 +3,7 @@ package launch
import ( import (
"strconv" "strconv"
"strings" "strings"
"tesou.io/platform/foot-parent/foot-core/common/base/service/mysql"
"tesou.io/platform/foot-parent/foot-core/common/utils" "tesou.io/platform/foot-parent/foot-core/common/utils"
"tesou.io/platform/foot-parent/foot-core/module/spider/constants" "tesou.io/platform/foot-parent/foot-core/module/spider/constants"
"time" "time"
...@@ -74,16 +75,17 @@ func Spider_History() { ...@@ -74,16 +75,17 @@ func Spider_History() {
} }
for _, v := range seasons { for _, v := range seasons {
mysql.ShowSQL(true)
Spider_match_his(v) Spider_match_his(v)
Spider_euroLast_his(v)
time.Sleep(28 * time.Minute)
Spider_euroHis_his(v)
time.Sleep(28 * time.Minute) time.Sleep(28 * time.Minute)
Spider_baseFace_his(v) Spider_baseFace_his(v)
time.Sleep(28 * time.Minute) time.Sleep(28 * time.Minute)
Spider_asiaLastNew_his(v) Spider_asiaLastNew_his(v)
time.Sleep(28 * time.Minute) time.Sleep(28 * time.Minute)
Spider_euroLast_his(v) mysql.ShowSQL(false)
time.Sleep(58 * time.Minute)
Spider_euroHis_his(v)
time.Sleep(108 * time.Minute)
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册