* [bug#64434,done,0.1h] optimize code.

This commit is contained in:
tianshujie
2025-08-06 00:55:51 +00:00
committed by sunguangming
parent 3a276c02d5
commit e8f8a0fc82
+1 -1
View File
@@ -527,7 +527,7 @@ class storyModel extends model
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story = t2.id')
->where('t1.project')->in($projectIdList)
->andWhere('t2.deleted')->eq(0)
->beginIF($storyType)->andWhere('t2.type')->in($storyType)->fi()
->beginIF(strpos(',story,requirement,epic,', ",{$storyType},") !== false)->andWhere('t2.type')->in($storyType)->fi()
->fetchGroup('project', 'id');
}