From 2c81655f97bd2c6b58383ab769819a1be022f6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 4 Jan 2021 10:09:47 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }