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