* Change the query code.

This commit is contained in:
tianshujie
2023-08-25 15:24:39 +08:00
parent b303ac810b
commit 28bf32b57c
+1 -2
View File
@@ -726,7 +726,6 @@ class projectModel extends model
*
* @param int $projectID
* @param array $productIdList
*
* @access public
* @return array
*/
@@ -736,8 +735,8 @@ class projectModel extends model
->from(TABLE_PROJECTPRODUCT)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project=t2.id')
->where('t1.product')->in($productIdList)
->andWhere('t1.project')->eq($projectID)
->andWhere('t2.deleted')->eq(0)
->andWhere('t2.project')->eq($projectID)
->fetchGroup('productID', 'branchID');
}