* Add getIssueListByObjects function.

This commit is contained in:
Guan Xiying
2021-07-07 09:44:16 +08:00
parent e5d78d015b
commit 83d23a312c
+18
View File
@@ -216,6 +216,24 @@ class gitlabModel extends model
->fetch();
}
/**
* Get issue id list group by obejct.
*
* @param string $objectType
* @param int $objectID
* @access public
* @return object
*/
public function getIssueListByObjects($objectType, $objects)
{
return $this->dao->select('*, extra as gitlabID, BVersion as projectID, BID as issueID')->from(TABLE_RELATION)
->where('relation')->eq('gitlab')
->andWhere('Atype')->eq($objectType)
->andWhere('AID')->in($objects)
->fetchAll('AID');
}
/**
* Get gitlab userID by account.
*