diff --git a/business/model/dao/dao_user.go b/business/model/dao/dao_user.go index 1be9d2e5b..e1e27a9b9 100644 --- a/business/model/dao/dao_user.go +++ b/business/model/dao/dao_user.go @@ -277,7 +277,7 @@ func GetUserAllWaitCashPrice(db *DaoDB, userID string) (price int, err error) { func GetUserAllWaitRealCashPrice(db *DaoDB, userID string) (price int, err error) { var result = &GetUserAllWaitCashPriceResult{} 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{}{ userID,