* Change the program variable to project.

This commit is contained in:
tianshujie98
2020-12-16 14:46:36 +08:00
parent 44c7bcbd59
commit a7669d60f4
+6 -6
View File
@@ -134,17 +134,17 @@ class repoModel extends model
/**
* Get repo list.
*
* @param int $programID
* @param int $projectID
* @param string $orderBy
* @param object $pager
* @access public
* @return array
*/
public function getList($programID, $orderBy = 'id_desc', $pager = null)
public function getList($projectID, $orderBy = 'id_desc', $pager = null)
{
$repos = $this->dao->select('*')->from(TABLE_REPO)
->where('deleted')->eq('0')
->andWhere("CONCAT(',', PRJ, ',')")->like("%,{$programID},%")
->andWhere("CONCAT(',', PRJ, ',')")->like("%,{$projectID},%")
->orderBy($orderBy)
->page($pager)->fetchAll('id');
@@ -278,15 +278,15 @@ class repoModel extends model
/**
* Get repo pairs.
*
* @param int $programID
* @param int $projectID
* @access public
* @return array
*/
public function getRepoPairs($programID)
public function getRepoPairs($projectID)
{
$repos = $this->dao->select('*')->from(TABLE_REPO)
->where('deleted')->eq(0)
->andWhere("CONCAT(',', PRJ, ',')")->like("%,{$programID},%")
->andWhere("CONCAT(',', PRJ, ',')")->like("%,{$projectID},%")
->fetchAll();
$repoPairs = array();