+ Add qa, bug, testcase, testtask of project module.

This commit is contained in:
zhujinyong
2021-03-21 17:44:25 +08:00
parent 6582a700bb
commit 4ebd5e6cc1
10 changed files with 692 additions and 12 deletions
+22
View File
@@ -139,6 +139,28 @@ class testtaskModel extends model
return $tasks;
}
/**
* Get test tasks of a project.
*
* @param int $projectID
* @param string $orderBy
* @param object $pager
* @access public
* @return array
*/
public function getProjectTasks($projectID, $orderBy = 'id_desc', $pager = null)
{
return $this->dao->select('t1.*, t2.name AS buildName')
->from(TABLE_TESTTASK)->alias('t1')
->leftJoin(TABLE_BUILD)->alias('t2')->on('t1.build = t2.id')
->where('t1.project')->eq((int)$projectID)
->andWhere('t1.auto')->ne('unit')
->andWhere('t1.deleted')->eq(0)
->orderBy($orderBy)
->page($pager)
->fetchAll('id');
}
/**
* Get test tasks of a execution.
*