* [bug] Add getList function in dept module.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user