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

1.不删除分析出的比赛

上级 e2dd8ad4
...@@ -40,10 +40,7 @@ ...@@ -40,10 +40,7 @@
style="background-color: orange" style="background-color: orange"
{{end}} {{end}}
> >
<strong> {{preResultStr .PreResult}}({{alFlagStr .AlFlag}})
{{preResultStr .PreResult}}
</strong>
{{alFlagStr .AlFlag}}
</td> </td>
</tr> </tr>
......
...@@ -45,10 +45,7 @@ ...@@ -45,10 +45,7 @@
style="background-color: orange" style="background-color: orange"
{{end}} {{end}}
> >
<strong> {{preResultStr .PreResult}}({{alFlagStr .AlFlag}})
{{preResultStr .PreResult}}
</strong>
{{alFlagStr .AlFlag}}
</td> </td>
</tr> </tr>
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
<li>联  赛:{{.LeagueName}}</li> <li>联  赛:{{.LeagueName}}</li>
<li>对阵双方:{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}</li> <li>对阵双方:{{.MainTeam}}({{.LetBall}}){{.GuestTeam}}</li>
<li>球探指数:{{.HitCount}}</li> <li>球探指数:{{.HitCount}}</li>
<li>分  析:<span style="color: red;font-weight: bold;font-size: 12px">tips:内容开发中....</span></li> <li>推荐选项:<span style="color: red;font-weight: bold;">{{preResultStr .PreResult}}</span></li>
<li>分  析:<span style="color: red;font-weight: bold;font-size: 12px">内容开发中....</span></li>
</ul> </ul>
<hr/> <hr/>
{{end}} {{end}}
......
...@@ -36,10 +36,7 @@ ...@@ -36,10 +36,7 @@
{{.MainTeamGoal}}:{{.GuestTeamGoal}} {{.MainTeamGoal}}:{{.GuestTeamGoal}}
</td> </td>
<td> <td>
<strong> {{preResultStr .PreResult}}({{alFlagStr .AlFlag}})
{{preResultStr .PreResult}}
</strong>
{{alFlagStr .AlFlag}}
</td> </td>
<td style="color: red"> <td style="color: red">
<strong>{{.HitCount}}</strong> <strong>{{.HitCount}}</strong>
......
...@@ -40,10 +40,7 @@ ...@@ -40,10 +40,7 @@
style="background-color: orange" style="background-color: orange"
{{end}} {{end}}
> >
<strong> {{preResultStr .PreResult}}({{alFlagStr .AlFlag}})
{{preResultStr .PreResult}}
</strong>
{{alFlagStr .AlFlag}}
</td> </td>
</tr> </tr>
......
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
>> 主队盘口打出 >> 主队盘口打出
* *
>> 客队盘口打出 >> 客队盘口打出
* 上盘
>> 让球方盘口打出
* 下盘
>> 受让球方盘口打出
## 模型说明 ## 模型说明
* A1模型 * A1模型
......
...@@ -156,6 +156,8 @@ WHERE ml.LeagueId = l.Id ...@@ -156,6 +156,8 @@ WHERE ml.LeagueId = l.Id
} }
if hitCount > 0 { if hitCount > 0 {
sql_build += " AND ar.HitCount >= " + strconv.Itoa(hitCount) sql_build += " AND ar.HitCount >= " + strconv.Itoa(hitCount)
}else{
sql_build += " AND ar.HitCount > 0 "
} }
if option >= 0 { if option >= 0 {
sql_build += " AND ar.PreResult = " + strconv.Itoa(option) + " " sql_build += " AND ar.PreResult = " + strconv.Itoa(option) + " "
......
...@@ -53,10 +53,10 @@ func (this *Asia20191206Service) Analy() { ...@@ -53,10 +53,10 @@ func (this *Asia20191206Service) Analy() {
hit_count, _ := strconv.Atoi(hit_count_str) hit_count, _ := strconv.Atoi(hit_count_str)
if temp_data.HitCount >= hit_count { if temp_data.HitCount >= hit_count {
temp_data.HitCount = (hit_count / 2) - 1 temp_data.HitCount = (hit_count / 2) - 1
this.AnalyService.Modify(temp_data) }else{
continue temp_data.HitCount = 0
} }
this.AnalyService.Del(temp_data) this.AnalyService.Modify(temp_data)
} }
} }
} }
......
...@@ -48,10 +48,10 @@ func (this *Euro20191206Service) Analy() { ...@@ -48,10 +48,10 @@ func (this *Euro20191206Service) Analy() {
hit_count, _ := strconv.Atoi(hit_count_str) hit_count, _ := strconv.Atoi(hit_count_str)
if temp_data.HitCount >= hit_count { if temp_data.HitCount >= hit_count {
temp_data.HitCount = (hit_count / 2) - 1 temp_data.HitCount = (hit_count / 2) - 1
this.AnalyService.Modify(temp_data) }else{
continue temp_data.HitCount = 0
} }
this.AnalyService.Del(temp_data) this.AnalyService.Modify(temp_data)
} }
} }
} }
......
...@@ -48,10 +48,10 @@ func (this *Euro20191212Service) Analy() { ...@@ -48,10 +48,10 @@ func (this *Euro20191212Service) Analy() {
hit_count, _ := strconv.Atoi(hit_count_str) hit_count, _ := strconv.Atoi(hit_count_str)
if temp_data.HitCount >= hit_count { if temp_data.HitCount >= hit_count {
temp_data.HitCount = (hit_count / 2) - 1 temp_data.HitCount = (hit_count / 2) - 1
this.AnalyService.Modify(temp_data) }else{
continue temp_data.HitCount = 0
} }
this.AnalyService.Del(temp_data) this.AnalyService.Modify(temp_data)
} }
} }
} }
......
...@@ -48,10 +48,10 @@ func (this *Euro20191226Service) Analy() { ...@@ -48,10 +48,10 @@ func (this *Euro20191226Service) Analy() {
hit_count, _ := strconv.Atoi(hit_count_str) hit_count, _ := strconv.Atoi(hit_count_str)
if temp_data.HitCount >= hit_count { if temp_data.HitCount >= hit_count {
temp_data.HitCount = (hit_count / 2) - 1 temp_data.HitCount = (hit_count / 2) - 1
this.AnalyService.Modify(temp_data) }else{
continue temp_data.HitCount = 0
} }
this.AnalyService.Del(temp_data) this.AnalyService.Modify(temp_data)
} }
} }
} }
......
...@@ -75,7 +75,7 @@ FROM ...@@ -75,7 +75,7 @@ FROM
foot.t_match_his mh, foot.t_match_his mh,
foot.t_analy_result ar foot.t_analy_result ar
WHERE mh.LeagueId = l.Id WHERE mh.LeagueId = l.Id
AND mh.Id = ar.MatchId AND mh.Id = ar.MatchId
` `
if param.HitCount > 0 { if param.HitCount > 0 {
sql += " AND ar.HitCount >= THitCount AND ar.HitCount >= '" + strconv.Itoa(param.HitCount) + "' " sql += " AND ar.HitCount >= THitCount AND ar.HitCount >= '" + strconv.Itoa(param.HitCount) + "' "
......
...@@ -24,11 +24,11 @@ type SuggestTodayService struct { ...@@ -24,11 +24,11 @@ type SuggestTodayService struct {
func preResultStr(val int) string { func preResultStr(val int) string {
if 3 == val { if 3 == val {
return "主" return "主不败"
} else if 1 == val { } else if 1 == val {
return "平" return "平"
} else if 0 == val { } else if 0 == val {
return "客" return "客不败"
} }
return "-" return "-"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册