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)) + `)`