From cd20453485022d621f7bbccabb9a96eb5a595d6c Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 9 Jan 2025 02:42:26 +0000 Subject: [PATCH] * [bug] Add getList function in dept module. --- module/dept/model.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/dept/model.php b/module/dept/model.php index f11cf7259d..efa0ba2baf 100644 --- a/module/dept/model.php +++ b/module/dept/model.php @@ -36,6 +36,18 @@ class deptModel extends model return $this->dao->select('id,name')->from(TABLE_DEPT)->fetchPairs(); } + /** + * 获取所有部门列表。 + * Get all department list. + * + * @access public + * @return array + */ + public function getList(): array + { + return $this->dao->select('*')->from(TABLE_DEPT)->fetchAll(); + } + /** * 获取下一级部门的部门信息。 * Get sons of a department.