* put getDeptUserPairs method from group model to dept model.

This commit is contained in:
chenfeiCF
2016-03-13 08:02:35 +08:00
parent bf33b5f108
commit 6b055c87fe
3 changed files with 17 additions and 17 deletions
-16
View File
@@ -178,22 +178,6 @@ class groupModel extends model
->fetchPairs();
}
/**
* Get user pairs of a dept.
*
* @param int $deptID
* @access public
* @return array
*/
public function getDeptUserPairs($deptID = 0)
{
return $this->dao->select('account, realname')->from(TABLE_USER)
->where('deleted')->eq(0)
->beginIF($deptID)->andWhere('dept')->eq((int)$deptID)
->orderBy('account')
->fetchPairs();
}
/**
* Delete a group.
*