Commit d2822e56 authored by hujun's avatar hujun

查询经纪人修改

parent 7dfad02c
......@@ -104,9 +104,8 @@ class Broker extends Basic
}
if ($where) {
$agent = new AAgents();
$field = 'id,name,phone';
$data['data'] = $agent->getList($pageNo, $pageSize, 'id DESC', $field, $where);
$data['data'] = $this->a_agents->getList($pageNo, $pageSize, 'id DESC', $field, $where);
} else {
$data['msg'] = '没有经纪人信息';
}
......
......@@ -293,37 +293,6 @@ class AAgents extends BaseModel
return $result;
}
public function saveList()
{
}
/**
* 分页列表
* @param int $p
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $join
* @param string $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getList($p = 1, $pageSize = 15, $order_ = 'id desc', $field = '', $join = '', $where = '')
{
$data = $this->field($field)
->alias('a')
->join($join)
->where($where)
->order($order_)
->limit($pageSize)
->page($p)
->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