From bbcb8ec37cacead181df6516da721a06e64d55a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 26 Oct 2020 17:37:37 +0800 Subject: [PATCH] de bal --- business/model/dao/dao_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_user.go b/business/model/dao/dao_user.go index 5a8547b77..1674e790a 100644 --- a/business/model/dao/dao_user.go +++ b/business/model/dao/dao_user.go @@ -41,7 +41,7 @@ func GetUserByID(db *DaoDB, fieldName, fieldValue string) (user *model.User, err func GetUserByIDWithMembers(db *DaoDB, fieldName, fieldValue string) (getSelfInfoResult *GetSelfInfoResult, err error) { sql := fmt.Sprintf(` - SELECT t1.*, t2.bill_id, t2.account_balance, t2.deposit_balance + SELECT t1.*, t2.bill_id, t2.account_balance FROM user t1 JOIN user_bill t2 ON t2.user_id = t1.user_id AND t2.deleted_at = ? WHERE t1.deleted_at = ? AND t1.status = ? AND t1.%s = ?