提交 713e38ac 编写于 作者: S shi.zeyuan

1.xxx

上级 a8696878
......@@ -119,6 +119,10 @@ func main() {
time.Sleep(10 * time.Minute)
}
case "auto\n", "auto":
go func() {
time.Sleep(24 * time.Hour)
new(service4.AnalyService).DelTovoidData()
}()
go func() {
for {
base.Log.Info("--------全量数据更新开始运行--------")
......
......@@ -9,6 +9,7 @@ import (
"strings"
"tesou.io/platform/foot-parent/foot-api/common/base"
launch2 "tesou.io/platform/foot-parent/foot-core/launch"
service4 "tesou.io/platform/foot-parent/foot-core/module/analy/service"
service2 "tesou.io/platform/foot-parent/foot-core/module/core/service"
"tesou.io/platform/foot-parent/foot-core/module/leisu/constants"
"tesou.io/platform/foot-parent/foot-core/module/leisu/service"
......@@ -132,6 +133,11 @@ HEAD:
goto HEAD
case "auto\n", "auto\r\n":
go func() {
go func() {
time.Sleep(24 * time.Hour)
new(service4.AnalyService).DelTovoidData()
}()
for {
base.Log.Info("--------全量数据更新开始运行--------")
//1.安装数据库
......
[mysql]
url=root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
#url=root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
#url=root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
url=root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
maxIdle=10
maxConn=50
[cookies]
......@@ -54,7 +54,7 @@ price_strategy=0
[wechat]
###推荐使用的算法
al_flag='','A1','C1','E2'
stat_al_flag='','A1','E2'
stat_al_flag='','A1'
main_al_flag=A1
OriId=gh_a8328f3c25d2
AppID=wx76e3dd0445aa0055
......
......@@ -53,7 +53,7 @@ price_strategy=0
[wechat]
###推荐使用的算法
al_flag='','A1','C1','E2'
stat_al_flag='','A1','E2'
stat_al_flag='','A1'
main_al_flag=A1
OriId=gh_a8328f3c25d2
AppID=wx76e3dd0445aa0055
......
......@@ -227,6 +227,18 @@ WHERE ml.id = el.matchid
return entitys
}
//测试加载数据
func (this *AnalyService) DelTovoidData() {
//E2 C1 不可删除
sql_build := `
DELETE FROM foot.t_analy_result WHERE AlFlag IN ("A1","C2","E1","Q1") AND TOVoid IS TRUE
`
_, err := mysql.GetEngine().Exec(sql_build)
if nil != err {
base.Log.Error("DelTovoidData" + err.Error())
}
}
func (this *AnalyService) IsRight2Option(v *entity2.MatchLast, analy *entity5.AnalyResult) string {
if strings.EqualFold(analy.MatchId, "1826976") {
fmt.Println("--")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册