* [bug#60200,done,0.1h] fix bug.

This commit is contained in:
sunguangming
2025-03-03 14:17:05 +08:00
committed by 王怡栋
parent 22ad2c2f1a
commit ad1ec7981d
+2 -2
View File
@@ -2920,8 +2920,8 @@ class storyModel extends model
->fetchAll('id');
$storyIdList = array_keys($stories);
$casePairs = $this->dao->select('story')->from(TABLE_CASE)->where('story')->in($storyIdList)->andWhere('story')->ne('0')->andWhere('deleted')->eq('0')->fetchPairs();
$taskPairs = $this->dao->select('story')->from(TABLE_TASK)->where('story')->in($storyIdList)->andWhere('story')->ne('0')->andWhere('deleted')->eq('0')->fetchPairs();
$casePairs = $this->dao->select('story')->from(TABLE_CASE)->where('story')->in($storyIdList)->andWhere('story')->notin($appendedStories)->andWhere('story')->ne('0')->andWhere('deleted')->eq('0')->fetchPairs();
$taskPairs = $this->dao->select('story')->from(TABLE_TASK)->where('story')->in($storyIdList)->andWhere('story')->notin($appendedStories)->andWhere('story')->ne('0')->andWhere('deleted')->eq('0')->fetchPairs();
foreach($stories as $story)
{
if(isset($casePairs[$story->id]) || isset($taskPairs[$story->id])) unset($stories[$story->id]);