* Merge 18.9 execution module.
This commit is contained in:
@@ -2020,7 +2020,7 @@ class executionModel extends model
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('status')->notin('closed,cancel')
|
||||
->andWhere('execution')->in($executionIdList)
|
||||
->orderBy('id_asc')
|
||||
->orderBy('order_asc')
|
||||
->fetchGroup('execution', 'id');
|
||||
|
||||
$taskIdList = array();
|
||||
@@ -2102,6 +2102,19 @@ class executionModel extends model
|
||||
return $execution;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get execution by build id.
|
||||
*
|
||||
* @param int $buildID
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getByBuild(int $buildID)
|
||||
{
|
||||
$build = $this->loadModel('build')->getById($buildID);
|
||||
return $this->getById($build->execution);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取执行的产品相关负责人。
|
||||
* Get the default managers for a execution from it's related products.
|
||||
|
||||
Reference in New Issue
Block a user