Commit 92d8f44a authored by hujun's avatar hujun

模糊搜索

parent d5207a2f
...@@ -872,11 +872,11 @@ class Broker extends Basic ...@@ -872,11 +872,11 @@ class Broker extends Basic
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize']; $pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$where['type'] = 1; $where['type'] = 1;
if ($this->params['name']) { if ($this->params['name']) {
$where['name'] = $this->params['name']; $where['name'] = ['LIKE', '%'.$this->params['name'].'%'];
} }
if ($this->params['phone']) { if ($this->params['phone']) {
$where['phone'] = $this->params['phone']; $where['phone'] = ['LIKE', '%'.$this->params['phone'].'%'];
} }
try { try {
......
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