* fix querying product in task table.

This commit is contained in:
liwenrui
2023-08-24 15:38:09 +08:00
parent 75f3d42e1e
commit 5827685993
+1 -1
View File
@@ -1381,7 +1381,7 @@ class aiModel extends model
if($objectName == 'task')
{
$vars[] = $this->dao->select('max(id) as maxId')->from(TABLE_TASK)->alias('tt')
->leftJoin(TABLE_DOC)->alias('td')->on('td.product = tt.product')
->leftJoin(TABLE_DOC)->alias('td')->on('td.project = tt.project or td.execution = tt.execution')
->where('td.id')->eq($objectId)
->andWhere('tt.deleted')->eq(0)
->fetch('maxId');