Commit d10a4e13 by “leiyan”

1、修复bug:app指数缺少最大值最小值平均值

parent ff7254ce
......@@ -131,6 +131,9 @@ class MatchIndexFragment : RefreshVP2Fragment<MatchIndexPresenter>(), MatchIndex
override fun onOdds(data: MatchOddEntity?) {
mStatusLayoutManager.showSuccessLayout()
rangFenList.clear()
ouzhiList.clear()
bigSmallList.clear()
data?.let {
it.yazhis?.forEach { yazhi ->
val rangfen = MatchIndexDataEntity()
......@@ -163,7 +166,63 @@ class MatchIndexFragment : RefreshVP2Fragment<MatchIndexPresenter>(), MatchIndex
ouzhiList.add(oupei)
}
it.maxStatisticsOuZhi?.apply {
val oupei = MatchIndexDataEntity()
oupei.type = this?.ouZhi?.initialOdds?.type
oupei.company = this?.statistics.orEmpty()
oupei.first = (this?.ouZhi?.initialOdds?.win ?: 0.0).toString()
oupei.second = (this?.ouZhi?.initialOdds?.draw ?: 0.0).toString()
oupei.third = (this?.ouZhi?.initialOdds?.loss ?: 0.0).toString()
oupei.fourth = (this?.ouZhi?.initialOdds?.homeWinRate ?: 0.0).toString()
oupei.fifth = (this?.ouZhi?.initialOdds?.awayWinRate ?: 0.0).toString()
oupei.sixth = (this?.ouZhi?.initialOdds?.breakRate ?: 0.0).toString()
oupei.typeSecond = this?.ouZhi?.nowOdds?.type
oupei.firstSecond = (this?.ouZhi?.nowOdds?.win ?: 0.0).toString()
oupei.secondSecond = (this?.ouZhi?.nowOdds?.draw ?: 0.0).toString()
oupei.thirdSecond = (this?.ouZhi?.nowOdds?.loss ?: 0.0).toString()
oupei.fourthSecond = (this?.ouZhi?.nowOdds?.homeWinRate ?: 0.0).toString()
oupei.fifthSecond = (this?.ouZhi?.nowOdds?.awayWinRate ?: 0.0).toString()
oupei.sixthSecond = (this?.ouZhi?.nowOdds?.breakRate ?: 0.0).toString()
ouzhiList.add(oupei)
}
it.minStatisticsOuZhi?.apply {
val oupei = MatchIndexDataEntity()
oupei.type = this?.ouZhi?.initialOdds?.type
oupei.company = this?.statistics.orEmpty()
oupei.first = (this?.ouZhi?.initialOdds?.win ?: 0.0).toString()
oupei.second = (this?.ouZhi?.initialOdds?.draw ?: 0.0).toString()
oupei.third = (this?.ouZhi?.initialOdds?.loss ?: 0.0).toString()
oupei.fourth = (this?.ouZhi?.initialOdds?.homeWinRate ?: 0.0).toString()
oupei.fifth = (this?.ouZhi?.initialOdds?.awayWinRate ?: 0.0).toString()
oupei.sixth = (this?.ouZhi?.initialOdds?.breakRate ?: 0.0).toString()
oupei.typeSecond = this?.ouZhi?.nowOdds?.type
oupei.firstSecond = (this?.ouZhi?.nowOdds?.win ?: 0.0).toString()
oupei.secondSecond = (this?.ouZhi?.nowOdds?.draw ?: 0.0).toString()
oupei.thirdSecond = (this?.ouZhi?.nowOdds?.loss ?: 0.0).toString()
oupei.fourthSecond = (this?.ouZhi?.nowOdds?.homeWinRate ?: 0.0).toString()
oupei.fifthSecond = (this?.ouZhi?.nowOdds?.awayWinRate ?: 0.0).toString()
oupei.sixthSecond = (this?.ouZhi?.nowOdds?.breakRate ?: 0.0).toString()
ouzhiList.add(oupei)
}
it.averageStatisticsOuZhi?.apply {
val oupei = MatchIndexDataEntity()
oupei.type = this?.ouZhi?.initialOdds?.type
oupei.company = this?.statistics.orEmpty()
oupei.first = (this?.ouZhi?.initialOdds?.win ?: 0.0).toString()
oupei.second = (this?.ouZhi?.initialOdds?.draw ?: 0.0).toString()
oupei.third = (this?.ouZhi?.initialOdds?.loss ?: 0.0).toString()
oupei.fourth = (this?.ouZhi?.initialOdds?.homeWinRate ?: 0.0).toString()
oupei.fifth = (this?.ouZhi?.initialOdds?.awayWinRate ?: 0.0).toString()
oupei.sixth = (this?.ouZhi?.initialOdds?.breakRate ?: 0.0).toString()
oupei.typeSecond = this?.ouZhi?.nowOdds?.type
oupei.firstSecond = (this?.ouZhi?.nowOdds?.win ?: 0.0).toString()
oupei.secondSecond = (this?.ouZhi?.nowOdds?.draw ?: 0.0).toString()
oupei.thirdSecond = (this?.ouZhi?.nowOdds?.loss ?: 0.0).toString()
oupei.fourthSecond = (this?.ouZhi?.nowOdds?.homeWinRate ?: 0.0).toString()
oupei.fifthSecond = (this?.ouZhi?.nowOdds?.awayWinRate ?: 0.0).toString()
oupei.sixthSecond = (this?.ouZhi?.nowOdds?.breakRate ?: 0.0).toString()
ouzhiList.add(oupei)
}
it.daxiaos?.forEach { daxiao ->
val smallBig = MatchIndexDataEntity()
smallBig.company = daxiao?.companyName.orEmpty()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment