* [bug] Add getList function in dept module.

This commit is contained in:
daitingting
2025-01-09 10:45:22 +08:00
committed by 綦新志
parent 933ba9f024
commit cd20453485
+12
View File
@@ -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.