* finish task #2119.

This commit is contained in:
wangyidong
2014-11-04 07:49:10 +00:00
parent b0b9235673
commit 64d6b19a4c
6 changed files with 52 additions and 34 deletions

View File

@@ -118,6 +118,19 @@ class testtaskModel extends model
return $task;
}
/**
* Get taskrun by case id.
*
* @param int $taskID
* @param int $caseID
* @access public
* @return void
*/
public function getRunByCase($taskID, $caseID)
{
return $this->dao->select('*')->from(TABLE_TESTRUN)->where('task')->eq($taskID)->andWhere('`case`')->eq($caseID)->fetch();
}
/**
* Get test tasks by user.
*