员工搜索bug修改

This commit is contained in:
hdm 2022-03-28 18:15:53 +08:00
parent 97f3965e28
commit e28807def7

View File

@ -29,7 +29,7 @@ class User extends BaseController
$where[] = ['id|username|name|nickname|mobile|desc', 'like', '%' . $param['keywords'] . '%'];
}
$where[] = ['status', '<', 2];
if (isset($param['status'])) {
if (!empty($param['status'])) {
$where[] = ['status', '=', $param['status']];
}
if (!empty($param['type'])) {