This commit is contained in:
苏尹岚
2021-01-04 14:49:27 +08:00
parent c659732c5d
commit 4a41424c73

View File

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