* [refac bug #57057] Fix sql error.

This commit is contained in:
wangyidong
2024-11-15 14:03:10 +08:00
committed by 孙广明
parent 11a8810dab
commit af673eca2b
+2 -2
View File
@@ -1592,8 +1592,8 @@ class blockZen extends block
foreach($products as $productID => $product) if($product->shadow) $shadowProductList[] = $productID;
$productProject = $this->dao->select('t1.product, t1.project')->from(TABLE_PROJECTPRODUCT)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')
->where('product')->in(array_values($shadowProductList))
->andWhere('type')->eq('project')
->where('t1.product')->in(array_values($shadowProductList))
->andWhere('t2.type')->eq('project')
->fetchPairs();
$productIdList = array_keys($products);