* Finish task#44397

This commit is contained in:
zenggang
2021-11-18 10:27:39 +00:00
parent 8fc6867523
commit 95e04b9bf0
14 changed files with 1142 additions and 2 deletions

View File

@@ -2186,4 +2186,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');
}
}