Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
6412e7fb
F
foot
项目概览
加钱居士.
/
foot
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
foot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6412e7fb
编写于
2月 19, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.xxx
上级
d0c42678
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
8 deletion
+6
-8
foot-core/module/analy/service/AnalyService.go
foot-core/module/analy/service/AnalyService.go
+6
-8
未找到文件。
foot-core/module/analy/service/AnalyService.go
浏览文件 @
6412e7fb
...
...
@@ -239,19 +239,19 @@ DELETE FROM foot.t_analy_result WHERE AlFlag IN ("A1","C2","E1","Q1") AND TOVoi
}
}
func
(
this
*
AnalyService
)
IsRight2Option
(
v
*
entity2
.
MatchLast
,
analy
*
entity5
.
AnalyResult
)
string
{
func
(
this
*
AnalyService
)
IsRight2Option
(
last
*
entity2
.
MatchLast
,
analy
*
entity5
.
AnalyResult
)
string
{
if
strings
.
EqualFold
(
analy
.
MatchId
,
"1826976"
)
{
fmt
.
Println
(
"--"
)
}
//比赛结果
var
globalResult
int
if
utils
.
GetHourDiffer
(
time
.
Now
(),
v
.
MatchDate
)
<
2
{
if
utils
.
GetHourDiffer
(
time
.
Now
(),
last
.
MatchDate
)
<
2
{
//比赛未结束
globalResult
=
-
1
}
else
{
if
v
.
MainTeamGoals
>
v
.
GuestTeamGoals
{
if
last
.
MainTeamGoals
>
last
.
GuestTeamGoals
{
globalResult
=
3
}
else
if
v
.
MainTeamGoals
<
v
.
GuestTeamGoals
{
}
else
if
last
.
MainTeamGoals
<
last
.
GuestTeamGoals
{
globalResult
=
0
}
else
{
globalResult
=
1
...
...
@@ -272,9 +272,8 @@ func (this *AnalyService) IsRight2Option(v *entity2.MatchLast, analy *entity5.An
}
//打印数据
league
:=
this
.
LeagueService
.
FindById
(
v
.
LeagueId
)
matchDateStr
:=
v
.
MatchDate
.
Format
(
"2006-01-02 15:04:05"
)
base
.
Log
.
Info
(
"比赛Id:"
+
v
.
Id
+
",比赛时间:"
+
matchDateStr
+
",联赛:"
+
league
.
Name
+
",对阵:"
+
v
.
MainTeamId
+
"("
+
strconv
.
FormatFloat
(
analy
.
LetBall
,
'f'
,
-
1
,
64
)
+
")"
+
v
.
GuestTeamId
+
",预算结果:"
+
strconv
.
Itoa
(
analy
.
PreResult
)
+
",已得结果:"
+
strconv
.
Itoa
(
v
.
MainTeamGoals
)
+
"-"
+
strconv
.
Itoa
(
v
.
GuestTeamGoals
)
+
" ("
+
resultFlag
+
")"
)
matchDateStr
:=
last
.
MatchDate
.
Format
(
"2006-01-02 15:04:05"
)
base
.
Log
.
Info
(
"比赛Id:"
+
last
.
Id
+
",比赛时间:"
+
matchDateStr
+
",联赛:"
+
league
.
Name
+
",对阵:"
+
last
.
MainTeamId
+
"("
+
strconv
.
FormatFloat
(
analy
.
LetBall
,
'f'
,
-
1
,
64
)
+
")"
+
last
.
GuestTeamId
+
",预算结果:"
+
strconv
.
Itoa
(
analy
.
PreResult
)
+
",已得结果:"
+
strconv
.
Itoa
(
last
.
MainTeamGoals
)
+
"-"
+
strconv
.
Itoa
(
last
.
GuestTeamGoals
)
+
" ("
+
resultFlag
+
")"
)
return
resultFlag
}
...
...
@@ -298,7 +297,6 @@ func (this *AnalyService) IsRight(last *entity2.MatchLast, analy *entity5.AnalyR
analy
.
TOVoid
=
true
}
//打印数据
matchDate
:=
last
.
MatchDate
.
Format
(
"2006-01-02 15:04:05"
)
base
.
Log
.
Info
(
"比赛Id:"
+
last
.
Id
+
",比赛时间:"
+
matchDate
+
",联赛:"
+
league
.
Name
+
",对阵:"
+
last
.
MainTeamId
+
"("
+
strconv
.
FormatFloat
(
analy
.
LetBall
,
'f'
,
-
1
,
64
)
+
")"
+
last
.
GuestTeamId
+
",预算结果:"
+
strconv
.
Itoa
(
analy
.
PreResult
)
+
",已得结果:"
+
strconv
.
Itoa
(
last
.
MainTeamGoals
)
+
"-"
+
strconv
.
Itoa
(
last
.
GuestTeamGoals
)
+
" ("
+
resultFlag
+
")"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录