* Add compile status of job when creating a MR.

This commit is contained in:
dingguodong
2021-11-09 12:10:03 +08:00
parent 65d9c524bb
commit efb3a369c8
9 changed files with 213 additions and 48 deletions
+16
View File
@@ -45,6 +45,22 @@ class compileModel extends model
->page($pager)
->fetchAll('id');
}
/**
* Get list by jobID.
*
* @param int $jobID
* @return array
*/
public function getListByJobID($jobID)
{
return $this->dao->select('id, name, status')->from(TABLE_COMPILE)
->where('deleted')->eq('0')
->andWhere('job')->ne('0')
->beginIF(!empty($jobID))->andWhere('job')->eq($jobID)->fi()
->orderBy('id_desc')
->fetchAll('id');
}
/**
* Get unexecuted list.