+ Add method for testtask getByBuild.

This commit is contained in:
caoyanyi
2023-09-27 14:11:49 +08:00
parent 2238e0a2b0
commit fc1ab2b8a5
2 changed files with 37 additions and 0 deletions
+16
View File
@@ -2292,4 +2292,20 @@ class testtaskModel extends model
return $result;
}
/**
* 根据版本查询测试用例。
* Query test cases by version.
*
* @param int $buildID
* @access public
* @return object|false
*/
public function getByBuild(int $buildID): object|false
{
return $this->dao->select('*')->from(TABLE_TESTTASK)
->where('build')->eq($build->id)
->andWhere('deleted')->eq(0)
->fetch();
}
}