* Merge 18.9 execution module.

This commit is contained in:
hufangzhou
2023-11-27 16:09:29 +08:00
parent 40557169ea
commit c0f638b983
4 changed files with 52 additions and 5 deletions
+14 -1
View File
@@ -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.