* Adjust code

This commit is contained in:
zenggang
2022-11-23 02:56:57 +00:00
parent 748323efe0
commit a0bda0eaa0
+2 -2
View File
@@ -158,14 +158,14 @@ class groupModel extends model
* @access public
* @return array
*/
public function getByAccount($account, $allVison = false)
public function getByAccount($account, $allVision = false)
{
return $this->dao->select('t2.*')->from(TABLE_USERGROUP)->alias('t1')
->leftJoin(TABLE_GROUP)->alias('t2')
->on('t1.`group` = t2.id')
->where('t1.account')->eq($account)
->andWhere('t2.project')->eq(0)
->beginIF(!$allVison)->andWhere('t2.vision')->eq($this->config->vision)->fi()
->beginIF(!$allVision)->andWhere('t2.vision')->eq($this->config->vision)->fi()
->fetchAll('id');
}