de bal
This commit is contained in:
@@ -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 = ?
|
||||
|
||||
Reference in New Issue
Block a user