* adjust for performance issue.

This commit is contained in:
wangyidong
2022-04-25 08:55:03 +08:00
parent c2f6b3220a
commit 0705daa805
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -683,6 +683,7 @@ class testcaseModel extends model
*/
public function getStoryCaseCounts($stories)
{
if(empty($stories)) return array();
$caseCounts = $this->dao->select('story, COUNT(*) AS cases')
->from(TABLE_CASE)
->where('story')->in($stories)