Commit bec935fe authored by hujun's avatar hujun

通过门店搜索经纪人列表

parent 25219965
......@@ -67,15 +67,19 @@ class Broker extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$where = '';
$where = 'status <> 2';
if ($this->params['phone']) {
$where = '(phone like "'.$this->params['phone'].'%" or name like "'.$this->params['phone'].'%")';
$where = ' AND (phone like "'.$this->params['phone'].'%" or name like "'.$this->params['phone'].'%")';
}
if ($this->params['level']) {
$where .= ' AND level in ('.$this->params['level'].')';
}
if ($this->params['store_id']) {
$where .= ' AND store_id='.$this->params['store_id'];
}
if ($where) {
$agent = new AAgents();
$field = 'id,name,phone';
......
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