更新人事调动
This commit is contained in:
parent
183744b6f6
commit
dba0e47999
|
@ -74,8 +74,8 @@ class Common extends ApiController
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
$where[] = ['a.status', '=', 1];
|
$where[] = ['a.status', '=', 1];
|
||||||
$where[] = ['a.id', '>', 1];
|
$where[] = ['a.id', '>', 1];
|
||||||
if (!empty($param['keywords'])) {
|
if (!empty($param['keyword'])) {
|
||||||
$where[] = ['a.name', 'like', '%' . $param['keywords'] . '%'];
|
$where[] = ['a.name', 'like', '%' . $param['keyword'] . '%'];
|
||||||
}
|
}
|
||||||
if(!empty($param['ids'])){
|
if(!empty($param['ids'])){
|
||||||
$where[] = ['a.id', 'notin', $param['ids']];
|
$where[] = ['a.id', 'notin', $param['ids']];
|
||||||
|
|
|
@ -28,8 +28,8 @@ class NoteIndex extends ApiController
|
||||||
$this->checkAuth();
|
$this->checkAuth();
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
$where = array();
|
$where = array();
|
||||||
if (!empty($param['keywords'])) {
|
if (!empty($param['keyword'])) {
|
||||||
$where[] = ['a.title', 'like', '%' . $param['keywords'] . '%'];
|
$where[] = ['a.title', 'like', '%' . $param['keyword'] . '%'];
|
||||||
}
|
}
|
||||||
$where[] = ['a.status', '=', 1];
|
$where[] = ['a.status', '=', 1];
|
||||||
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
||||||
|
|
|
@ -28,8 +28,8 @@ class UserPersonal extends ApiController
|
||||||
{
|
{
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
$where = [];
|
$where = [];
|
||||||
if (!empty($param['keywords'])) {
|
if (!empty($param['keyword'])) {
|
||||||
$where[] = ['u.name|p.remark|a.title|b.title','like', '%' . $param['keywords'] . '%'];
|
$where[] = ['u.name|p.remark|a.title|b.title','like', '%' . $param['keyword'] . '%'];
|
||||||
}
|
}
|
||||||
$where[] = ['p.status','=', 1];
|
$where[] = ['p.status','=', 1];
|
||||||
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
||||||
|
@ -91,8 +91,8 @@ class UserPersonal extends ApiController
|
||||||
if (request()->isAjax()) {
|
if (request()->isAjax()) {
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
$where = array();
|
$where = array();
|
||||||
if (!empty($param['keywords'])) {
|
if (!empty($param['keyword'])) {
|
||||||
$where['u.name|p.remark'] = ['like', '%' . $param['keywords'] . '%'];
|
$where['u.name|p.remark'] = ['like', '%' . $param['keyword'] . '%'];
|
||||||
}
|
}
|
||||||
$where['p.status'] = array('eq', 1);
|
$where['p.status'] = array('eq', 1);
|
||||||
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
|
||||||
|
|
Loading…
Reference in New Issue