aa
This commit is contained in:
@@ -458,11 +458,7 @@ func GetManageStatistics(db *DaoDB, cityCodes []int, jobTime time.Time, jobIDs [
|
|||||||
}, err
|
}, err
|
||||||
} else {
|
} else {
|
||||||
getManageStatisticsResult.Date = jobTime
|
getManageStatisticsResult.Date = jobTime
|
||||||
if getManageStatisticsResult.BrowseCount == 0 {
|
getManageStatisticsResult.InversionRate = math.Round(float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount))
|
||||||
getManageStatisticsResult.InversionRate = 0
|
|
||||||
} else {
|
|
||||||
getManageStatisticsResult.InversionRate = math.Round(float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount))
|
|
||||||
}
|
|
||||||
return getManageStatisticsResult, err
|
return getManageStatisticsResult, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user