正在显示
1 个修改的文件
包含
9 行增加
和
8 行删除
| @@ -20,14 +20,15 @@ class DeptController extends BaseController | @@ -20,14 +20,15 @@ class DeptController extends BaseController | ||
| 20 | 20 | ||
| 21 | public function list(DeptLogic $logic) | 21 | public function list(DeptLogic $logic) |
| 22 | { | 22 | { |
| 23 | - | ||
| 24 | - $map = []; | ||
| 25 | - if(!empty($this->param['search'])){ | ||
| 26 | - $map[] = ['title', 'like', "%{$this->param['search']}%"]; | ||
| 27 | - } | ||
| 28 | - $sort = ['id' => 'desc']; | ||
| 29 | - $data = $logic->getList($map, $sort, ['id', 'pid', 'title'],0); | ||
| 30 | - return $this->success(Arr::listToTree($data)); | 23 | + var_dump(1111111); |
| 24 | + die(); | ||
| 25 | +// $map = []; | ||
| 26 | +// if(!empty($this->param['search'])){ | ||
| 27 | +// $map[] = ['title', 'like', "%{$this->param['search']}%"]; | ||
| 28 | +// } | ||
| 29 | +// $sort = ['id' => 'desc']; | ||
| 30 | +// $data = $logic->getList($map, $sort, ['id', 'pid', 'title'],0); | ||
| 31 | +// return $this->success(Arr::listToTree($data)); | ||
| 31 | } | 32 | } |
| 32 | 33 | ||
| 33 | public function info(Request $request, DeptLogic $logic){ | 34 | public function info(Request $request, DeptLogic $logic){ |
-
请 注册 或 登录 后发表评论