* Finish task#38911.

This commit is contained in:
qiyu-xie
2021-06-04 22:16:39 +08:00
parent fc473ab743
commit d38cfbd23e
3 changed files with 18 additions and 4 deletions
+14
View File
@@ -492,6 +492,20 @@ class testtaskModel extends model
->fetchAll();
}
/**
* Get test report pairs by build.
*
* @param string $build
* @access public
* @return array
*/
public function getTestReportPairsByBuild($build = '')
{
if(empty($build)) return array();
return $this->dao->select('id,title')->from(TABLE_TESTREPORT)->where("CONCAT(',', builds, ',')")->like("%,$build,%")->fetchPairs('id','title');
}
/**
* Get related test tasks.
*