Merge branch 'fixbug'

This commit is contained in:
王怡栋
2022-11-16 13:08:00 +08:00
+1 -1
View File
@@ -3082,7 +3082,7 @@ class storyModel extends model
}
elseif($branch !== 'all' and $branch !== '' and strpos($storyQuery, '`branch` =') === false and $queryProductID != 'all')
{
$storyQuery .= " AND `branch` in($branch)";
if($branch and strpos($storyQuery, '`branch` =') === false) $storyQuery .= " AND `branch` " . helper::dbIN($branch);
}
$storyQuery = preg_replace("/`plan` +LIKE +'%([0-9]+)%'/i", "CONCAT(',', `plan`, ',') LIKE '%,$1,%'", $storyQuery);