Sprint/228 zg tasks and units

This commit is contained in:
曾刚
2022-08-18 07:15:14 +00:00
committed by 王怡栋
parent c586a24d50
commit 3172961404
27 changed files with 315 additions and 73 deletions
+18
View File
@@ -702,6 +702,24 @@ class testcaseModel extends model
->fetchAll('id');
}
/**
* Get case pairs by product id and branch.
*
* @param int $productID
* @param int|string $branch
* @access public
* @return void
*/
public function getPairsByProduct($productID, $branch = 0)
{
return $this->dao->select('id, concat_ws(":", id, title) as title')->from(TABLE_CASE)
->where('deleted')->eq(0)
->andWhere('product')->eq($productID)
->beginIF($branch)->andWhere('branch')->in($branch)->fi()
->orderBy('id_desc')
->fetchPairs();
}
/**
* Get cases of a story.
*