aa
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user