This commit is contained in:
苏尹岚
2020-12-04 17:23:18 +08:00
parent 09277b1842
commit 8836690b1a

View File

@@ -277,7 +277,7 @@ func GetUserAllWaitCashPrice(db *DaoDB, userID string) (price int, err error) {
func GetUserAllWaitRealCashPrice(db *DaoDB, userID string) (price int, err error) { func GetUserAllWaitRealCashPrice(db *DaoDB, userID string) (price int, err error) {
var result = &GetUserAllWaitCashPriceResult{} var result = &GetUserAllWaitCashPriceResult{}
sql := ` sql := `
SELECT SUM(pay_price) price FROM order WHERE user_id = ? AND status = ? AND type = ? SELECT SUM(pay_price) price FROM ` + "`order`" + ` WHERE user_id = ? AND status = ? AND type = ?
` `
sqlParams := []interface{}{ sqlParams := []interface{}{
userID, userID,