Commit a783a75a authored by zhuwei's avatar zhuwei

查询好友邀请记录-后期加分页

parent 01fd0556
......@@ -376,7 +376,7 @@ class Client extends Basic
$where['referrer_id'] = $this->agentId;
$where['referrer_source'] = 20;
$fields = 'user_nick,user_phone,user_pic,other_pic,create_time';
$data['data'] = $this->user->getUserByWhere($pageNo, $pageSize,$where, $fields);
$data['data'] = $this->user->getUserForInviteList($pageNo, $pageSize,$where, $fields);
foreach ($data['data'] as $k=>$v) {
$data['data'][$k]['user_pic'] = !empty($v['user_pic']) ? HEADERIMGURL.$v['user_pic'] : $v['other_pic'] ;
......
......@@ -51,6 +51,27 @@ class Users extends Model
return $data;
}
/**
* 查询好友邀请记录-后期加分页
* @param $param
* @param string $fields
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getUserForInviteList($pageNo, $pageSize,$param, $fields = 'id,user_phone')
{
$data = $this
->field($fields)
->where($param)
->order('create_time desc')
->limit($pageSize)
->page($pageNo)
->select();
return $data;
}
/**
* 查询用户和经纪人
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment