This commit is contained in:
liyuchun
2021-09-14 08:59:24 +08:00
parent c473a76d01
commit 8e2eae4f05
7 changed files with 54 additions and 3 deletions
+11
View File
@@ -1963,4 +1963,15 @@ class testcase extends control
if($methodName == 'update') $status = zget($status, 1, '');
die($status);
}
/**
* Ajax: Get count of need review casese.
*
* @access public
* @return int
*/
public function ajaxGetReviewCount()
{
echo $this->dao->select('count(id) as count')->from(TABLE_CASE)->where('status')->eq('wait')->fetch('count');
}
}
+3 -3
View File
@@ -319,7 +319,7 @@ class testcaseModel extends model
}
/**
* Get by suite.
* Get cases by suite.
*
* @param int $productID
* @param int $branch
@@ -329,7 +329,7 @@ class testcaseModel extends model
* @param object $pager
* @param string $auto no|unit
* @access public
* @return void
* @return array
*/
public function getBySuite($productID, $branch = 0, $suiteID, $moduleIdList = 0, $orderBy = 'id_desc', $pager = null, $auto = 'no')
{
@@ -586,7 +586,7 @@ class testcaseModel extends model
* @access public
* @return array
*/
public function getByStatus($productID = 0, $branch, $type = 'all', $status = 'all', $moduleID, $orderBy = 'id_desc', $pager, $auto = 'no')
public function getByStatus($productID = 0, $branch, $type = 'all', $status = 'all', $moduleID = 0, $orderBy = 'id_desc', $pager = null, $auto = 'no')
{
$modules = $moduleID ? $this->loadModel('tree')->getAllChildId($moduleID) : '0';