This commit is contained in:
xiawenlong
2021-11-19 09:34:16 +08:00
14 changed files with 1142 additions and 2 deletions

View File

@@ -2212,4 +2212,17 @@ class gitlabModel extends model
return false;
}
/**
* Get products which scm is GitLab by projects.
*
* @param array $projectIDs
* @return array
*/
public function getProductsByProjects($projectIDs)
{
return $this->dao->select('path,product')->from(TABLE_REPO)->where('deleted')->eq('0')
->andWhere('SCM')->eq('Gitlab')
->andWhere('path')->in($projectIDs)
->fetchPairs('path', 'product');
}
}