客户列表搜索bug修复

This commit is contained in:
hdm 2022-09-07 15:47:32 +08:00
parent 32bbde6c8e
commit 29e3034373

View File

@ -26,7 +26,7 @@ class Index extends BaseController
$where = array();
$whereOr = array();
if (!empty($param['keywords'])) {
$where[] = ['a.id|a.name|c.title', 'like', '%' . $param['keywords'] . '%'];
$where[] = ['a.id|a.name', 'like', '%' . $param['keywords'] . '%'];
}
if (!empty($param['status'])) {
$where[] = ['a.status', '=', $param['status']];
@ -119,7 +119,7 @@ class Index extends BaseController
$param = get_params();
$where = array();
if (!empty($param['keywords'])) {
$where[] = ['a.id|a.name|c.title', 'like', '%' . $param['keywords'] . '%'];
$where[] = ['a.id|a.name', 'like', '%' . $param['keywords'] . '%'];
}
if (!empty($param['status'])) {
$where[] = ['a.status', '=', $param['status']];