* Adjust code.

This commit is contained in:
leiyong
2021-03-08 09:15:42 +08:00
parent 951c76cd85
commit 2cedf63ee2
2 changed files with 14 additions and 29 deletions
+1 -1
View File
@@ -1625,7 +1625,7 @@ class executionModel extends model
$query = $this->dao->select('t2.id, t2.name, t2.type, t1.branch, t1.plan')->from(TABLE_PROJECTPRODUCT)->alias('t1')
->leftJoin(TABLE_PRODUCT)->alias('t2')
->on('t1.product = t2.id')
->where('t1.execution')->eq((int)$executionID)
->where('t1.project')->eq((int)$executionID)
->andWhere('t2.deleted')->eq(0);
if(!$withBranch) return $query->fetchPairs('id', 'name');
return $query->fetchAll('id');