This commit is contained in:
苏尹岚
2021-01-04 15:27:09 +08:00
parent 59d8c30d91
commit 7f2a3c5133
2 changed files with 9 additions and 7 deletions

View File

@@ -259,7 +259,7 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile
rSQL3, rSQLParams3 := getFromSql(model.OrderTypeCash, model.OrderStatusFinished, "t3", userID, pop, cityCodes, mobile, fromTime, toTime, orderTypes)
sql += rSQL3 + ","
sqlParams = append(sqlParams, rSQLParams3...)
sql += `(SELECT SUM(IFNULL(b.account_balance,0)) account_balacne
sql += `(SELECT SUM(IFNULL(b.account_balance,0)) account_balance
FROM user a
JOIN user_bill b ON a.user_id = b.user_id
`