From 4ff352b5c16e7809065e5709c395672f73e40384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 8 Jan 2021 16:26:14 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 457559711..dc5f27206 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -458,11 +458,7 @@ func GetManageStatistics(db *DaoDB, cityCodes []int, jobTime time.Time, jobIDs [ }, err } else { getManageStatisticsResult.Date = jobTime - if getManageStatisticsResult.BrowseCount == 0 { - getManageStatisticsResult.InversionRate = 0 - } else { - getManageStatisticsResult.InversionRate = math.Round(float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount)) - } + getManageStatisticsResult.InversionRate = math.Round(float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount)) return getManageStatisticsResult, err } }