This commit is contained in:
苏尹岚
2021-01-04 10:09:47 +08:00
parent 615acd6363
commit 2c81655f97

View File

@@ -248,9 +248,9 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
}
fmt.Println(sql)
fmt.Println(sqlParams)
fmt.Println(utils.Format4Output(getPayStatisticsResult, false))
err = GetRow(db, &getPayStatisticsResult, sql, sqlParams)
fmt.Println(utils.Format4Output(getPayStatisticsResult, false))
sqlParams2 := []interface{}{}
getWhereSql2 := func() (sql string) {
sql += ` AND order_type = ?`
@@ -308,6 +308,9 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
sql2 += `
WHERE b.user_id = t1.user_id) t3
`
fmt.Println(sql2)
fmt.Println(sqlParams2)
err = GetRow(db, &getPayStatisticsResult, sql2, sqlParams2)
fmt.Println(utils.Format4Output(getPayStatisticsResult, false))
return getPayStatisticsResult, err
}