* Modify the query logic of the project library.

This commit is contained in:
tianshujie98
2021-08-06 10:58:31 +08:00
parent 5c28353c09
commit 47a0a042e5
+3 -2
View File
@@ -1077,8 +1077,9 @@ class docModel extends model
->andWhere($type)->eq($objectID)
->beginIF(!empty($appendLib))->orWhere('id')->eq($appendLib)->fi()
->beginIF($type == 'project')
->andWhere('execution')->gt(0)
->andWhere('main')->eq(0)
->andWhere('(execution')->eq(0)
->orWhere('main')->eq(0)
->markRight(1)
->fi()
->orderBy('`order`, id')
->fetchAll('id');