This commit is contained in:
苏尹岚
2020-10-26 17:37:37 +08:00
parent 396f81cd58
commit bbcb8ec37c

View File

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