作者 赵彬吉

update

... ... @@ -21,7 +21,17 @@ class ManageController extends BaseController
public function list(Request $request, ManageLogic $logic)
{
$list = $logic->getList();
$map = [];
if(!empty($this->param['search'])){
$map[] = ['name|mobile', 'like', "%{$this->param['search']}%"];
}
if(!empty($this->param['dept_id'])){
$map[] = ['dept_id', $this->param['dept_id']];
}
if(!empty($this->param['gid'])){
$map[] = ['gid', $this->param['gid']];
}
$list = $logic->getList($map);
return $this->success($list);
}
... ...