天假支付宝提现操作

This commit is contained in:
邹宗楠
2022-07-06 16:49:15 +08:00
parent 6c26e35a23
commit 289ced8fbb
6 changed files with 64 additions and 9 deletions

View File

@@ -123,7 +123,7 @@ func GetUsers2(db *DaoDB, keyword string, userID string, pop int, mobile string,
sqlParams := []interface{}{}
sql := `
SELECT SQL_CALC_FOUND_ROWS DISTINCT
a.*
a.*,ub.account_balance
FROM user a`
for _, v := range consumeTypes {
switch v {
@@ -171,6 +171,7 @@ func GetUsers2(db *DaoDB, keyword string, userID string, pop int, mobile string,
}
}
}
sql += ` JOIN user_bill ub ON ub.user_id = a.user_id`
sql += `
WHERE a.status = 1 AND a.deleted_at = ?`
sqlParams = append(sqlParams, utils.DefaultTimeValue)