shish 3 лет назад
Родитель
Сommit
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
         $classIds = ItemClassClass::getGhsItemClassAll($mainId);
 
+        $all = Yii::$app->request->get('all', 0);
+
         $where['mainId'] = $mainId;
-        $where['status'] = $status;
+        if ($all == 0) {
+            $where['status'] = $status;
+        }
         $where['delStatus'] = 0;
 
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");