* Adjust sql for trash get.

This commit is contained in:
caoyanyi
2024-05-06 14:17:07 +08:00
parent c6f1eb0c82
commit b593afff62
+2 -3
View File
@@ -293,9 +293,8 @@ class actionModel extends model
->beginIF($objectType != 'all')->andWhere('objectType')->eq($objectType)->fi()
->beginIF($objectType == 'execution')->andWhere('objectID')->notIn($noMultipleExecutions)->fi()
->beginIF($objectType == 'all')
->andWhere('objectType', true)->ne('exection')
->markLeft(1)
->orWhere('objectType')->eq('exection')->andWhere('objectID')->notIn($noMultipleExecutions)
->andWhere('objectType', true)->ne('execution')
->orWhere('(objectType')->eq('execution')->andWhere('objectID')->notIn($noMultipleExecutions)
->markRight(2)
->fi()
->andWhere('extra')->eq($extra)