浏览代码

花材下载

shish 3 年之前
父节点
当前提交
f1ce331088
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      biz-ghs/product/services/ProductService.php

+ 5 - 1
biz-ghs/product/services/ProductService.php

@@ -125,8 +125,12 @@ class ProductService extends BaseService
         //中央ID
         //中央ID
         $classIds = ItemClassClass::getGhsItemClassAll($mainId);
         $classIds = ItemClassClass::getGhsItemClassAll($mainId);
 
 
+        $all = Yii::$app->request->get('all', 0);
+
         $where['mainId'] = $mainId;
         $where['mainId'] = $mainId;
-        $where['status'] = $status;
+        if ($all == 0) {
+            $where['status'] = $status;
+        }
         $where['delStatus'] = 0;
         $where['delStatus'] = 0;
 
 
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");