This commit is contained in:
songchenxuan
2023-06-15 15:11:33 +08:00
parent c81b5058ef
commit 08d5831c7a
+1 -1
View File
@@ -3265,7 +3265,7 @@ class storyModel extends model
$stories = $this->dao->select("*,IF(`pri` = 0, {$this->config->maxPriValue}, `pri`) as priOrder")->from(TABLE_STORY)
->where('product')->in($productID)
->andWhere('type')->eq($type)
->beginIF($branch)->andWhere("branch")->eq($branch)->fi()
->beginIF($branch and $branch != 'all')->andWhere("branch")->eq($branch)->fi()
->beginIF($modules)->andWhere("module")->in($modules)->fi()
->andWhere('deleted')->eq(0)
->andWhere('vision')->eq($this->config->vision)