aa
This commit is contained in:
@@ -167,6 +167,7 @@ func GetManageStatisticsImg(ctx *jxcontext.Context, cityCodes []int, fromTime, t
|
||||
)
|
||||
for i := 1; i < utils.Float64TwoInt(toTimeT.Sub(fromTimeT).Hours()/24); i++ {
|
||||
if getManageStatisticsResult, err := dao.GetManageStatistics(db, cityCodes, fromTimeT.AddDate(0, 0, i), jobIDs); err == nil {
|
||||
fmt.Println(utils.Format4Output(getManageStatisticsResult, false))
|
||||
getManageStatistics = append(getManageStatistics, getManageStatisticsResult)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -452,8 +451,6 @@ func GetManageStatistics(db *DaoDB, cityCodes []int, jobTime time.Time, jobIDs [
|
||||
WHERE a.id = t5.id
|
||||
)t6
|
||||
`
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
err = GetRow(db, &getManageStatisticsResult, sql, sqlParams)
|
||||
getManageStatisticsResult.Date = jobTime
|
||||
getManageStatisticsResult.InversionRate = float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount)
|
||||
|
||||
Reference in New Issue
Block a user