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 = ?