Commit 465c28b0 authored by hujun's avatar hujun

搜索经纪人状态

parent 3e23c6c2
......@@ -334,9 +334,13 @@ class Broker extends Basic
$data['userRule'] = $userRule;
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
//条件
// $where['a.status'] = ['IN',['0,1']];
$where['a.id'] = [ '<>', 1 ];
if ($params['status']) {
$where['a.status'] = ['<>', 0];
} else {
$where['a.status'] = 0;
}
if (!empty($params['search'])) {
$where[] = [ 'EXP', "a.name like '%{$params['search']}%' OR a.phone like '%{$params['search']}%'" ];
......
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