diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 1769c0f39..da3588be9 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -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 }