aa
This commit is contained in:
@@ -448,6 +448,8 @@ func GetManageStatistics(db *DaoDB, cityCodes []int, jobTime time.Time, jobIDs [
|
|||||||
sql += `
|
sql += `
|
||||||
) t5
|
) t5
|
||||||
`
|
`
|
||||||
|
fmt.Println(sql)
|
||||||
|
fmt.Println(sqlParams)
|
||||||
err = GetRow(db, &getManageStatisticsResult, sql, sqlParams)
|
err = GetRow(db, &getManageStatisticsResult, sql, sqlParams)
|
||||||
getManageStatisticsResult.Date = jobTime
|
getManageStatisticsResult.Date = jobTime
|
||||||
getManageStatisticsResult.InversionRate = float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount)
|
getManageStatisticsResult.InversionRate = float64(getManageStatisticsResult.FinishCount) / float64(getManageStatisticsResult.BrowseCount)
|
||||||
@@ -493,8 +495,6 @@ func GetManageStatisticsJob(db *DaoDB, cityCodes []int, fromTime, toTime time.Ti
|
|||||||
sqlParams = append(sqlParams, pageSize, offset)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
Begin(db)
|
Begin(db)
|
||||||
defer Commit(db)
|
defer Commit(db)
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
err = GetRows(db, &getManageStatisticsJobResult, sql, sqlParams)
|
err = GetRows(db, &getManageStatisticsJobResult, sql, sqlParams)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
pageInfo = &model.PagedInfo{
|
pageInfo = &model.PagedInfo{
|
||||||
|
|||||||
Reference in New Issue
Block a user