* 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

View File

@@ -2481,6 +2481,7 @@ class taskModel extends model
*/
public function getStoryTaskCounts($stories, $executionID = 0)
{
if(empty($stories)) return array();
$taskCounts = $this->dao->select('story, COUNT(*) AS tasks')
->from(TABLE_TASK)
->where('story')->in($stories)