From 4a41424c73ff114d0099a7b0aec28773b1df9711 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 14:49:27 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index b526abdac..0dfbd0517 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -191,7 +191,7 @@ type GetPayStatisticsResult struct { } func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile string, fromTime, toTime time.Time, orderTypes []int) (getPayStatisticsResult *GetPayStatisticsResult, err error) { - sqlParams := []interface{}{} + var sqlParams []interface{} getWhereSql := func(sqlP []interface{}) (sql string) { if len(orderTypes) > 0 { sql += ` AND b.order_type IN ` + GenQuestionMarks(len(orderTypes)) + `)`