* Finish task #48094.
This commit is contained in:
@@ -97,6 +97,21 @@ class compileModel extends model
|
||||
return $this->dao->select('*')->from(TABLE_COMPILE)->where('job')->eq($jobID)->andWhere('status')->ne('')->orderBy('createdDate_desc')->limit(1)->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get success jobs by job id list.
|
||||
*
|
||||
* @param array $jobIDList
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getSuccessJobs($jobIDList)
|
||||
{
|
||||
return $this->dao->select('job')->from(TABLE_COMPILE)
|
||||
->where('job')->in($jobIDList)
|
||||
->andWhere('status')->eq('success')
|
||||
->fetchPairs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get build url.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user