update:调整部门管理

This commit is contained in:
JaguarJack
2020-09-01 07:58:36 +08:00
parent 1d660ba648
commit 44ed0b9788
2 changed files with 2 additions and 4 deletions

View File

@@ -35,9 +35,7 @@ class Department extends CatchModel
*/
public function getList(): array
{
return $this->withoutField(['department_name'])
->addFields(['department_name as title'])
->catchSearch()
return $this->catchSearch()
->catchOrder()
->select()->toArray();
}