shish 1 yıl önce
ebeveyn
işleme
ac479d2fcf

+ 2 - 0
biz-ghs/product/services/ProductService.php

@@ -558,6 +558,8 @@ class ProductService extends BaseService
         $where['mainId'] = $mainId;
         $where['mainId'] = $mainId;
         $where['status'] = $status;
         $where['status'] = $status;
         $where['delStatus'] = 0;
         $where['delStatus'] = 0;
+        $where['stock>'] = 0;
+        $where['virtualStock'] = 0;
 
 
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);