更新人事调动

This commit is contained in:
yaooo 2023-10-30 13:41:16 +08:00
parent 183744b6f6
commit dba0e47999
3 changed files with 8 additions and 8 deletions

View File

@ -74,8 +74,8 @@ class Common extends ApiController
$param = get_params();
$where[] = ['a.status', '=', 1];
$where[] = ['a.id', '>', 1];
if (!empty($param['keywords'])) {
$where[] = ['a.name', 'like', '%' . $param['keywords'] . '%'];
if (!empty($param['keyword'])) {
$where[] = ['a.name', 'like', '%' . $param['keyword'] . '%'];
}
if(!empty($param['ids'])){
$where[] = ['a.id', 'notin', $param['ids']];

View File

@ -28,8 +28,8 @@ class NoteIndex extends ApiController
$this->checkAuth();
$param = get_params();
$where = array();
if (!empty($param['keywords'])) {
$where[] = ['a.title', 'like', '%' . $param['keywords'] . '%'];
if (!empty($param['keyword'])) {
$where[] = ['a.title', 'like', '%' . $param['keyword'] . '%'];
}
$where[] = ['a.status', '=', 1];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];

View File

@ -28,8 +28,8 @@ class UserPersonal extends ApiController
{
$param = get_params();
$where = [];
if (!empty($param['keywords'])) {
$where[] = ['u.name|p.remark|a.title|b.title','like', '%' . $param['keywords'] . '%'];
if (!empty($param['keyword'])) {
$where[] = ['u.name|p.remark|a.title|b.title','like', '%' . $param['keyword'] . '%'];
}
$where[] = ['p.status','=', 1];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
@ -91,8 +91,8 @@ class UserPersonal extends ApiController
if (request()->isAjax()) {
$param = get_params();
$where = array();
if (!empty($param['keywords'])) {
$where['u.name|p.remark'] = ['like', '%' . $param['keywords'] . '%'];
if (!empty($param['keyword'])) {
$where['u.name|p.remark'] = ['like', '%' . $param['keyword'] . '%'];
}
$where['p.status'] = array('eq', 1);
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];