修改用户邀请记录查询
This commit is contained in:
parent
71f4df0845
commit
f68bc5b684
@ -567,8 +567,7 @@ class User extends BaseController
|
||||
$count = $userQuery->count();
|
||||
$userIds = $userQuery->page($page, $limit)->column('uid');
|
||||
$query = Merchant::whereIn('uid', $userIds)->where('is_del', 0);
|
||||
$merchants = $query->page($page, $limit)
|
||||
->field('mer_id,mer_name,uid,real_name,sale_amount,purchase_amount as buy_amount')
|
||||
$merchants = $query->field('mer_id,mer_name,uid,real_name,sale_amount,purchase_amount as buy_amount')
|
||||
->select()->toArray();
|
||||
$merchants = reset_index($merchants, 'uid');
|
||||
$result = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user