This commit is contained in:
苏尹岚
2021-01-04 14:47:14 +08:00
parent 6ce886212f
commit c659732c5d
4 changed files with 19 additions and 13 deletions

View File

@@ -211,7 +211,7 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
sql += `
(SELECT SUM(IFNULL(b.pay_price,0)) total_pay
FROM user a
JOIN ` + "`order` b" + `ON b.user_id = a.user_id AND b.type = ? AND b.status = ? ` + getWhereSql(sqlP) + `
JOIN ` + "`order` b " + `ON b.user_id = a.user_id AND b.type = ? AND b.status = ? ` + getWhereSql(sqlP) + `
`
sqlP = append(sqlP, orderType, status)
if mobile != "" {