shish 4 лет назад
Родитель
Сommit
ec1edc55d1
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      app-ghs/controllers/ProductController.php

+ 4 - 0
app-ghs/controllers/ProductController.php

@@ -179,6 +179,10 @@ class ProductController extends BaseController
         $where = [];
         $where['sjId'] = $this->sjId;
         $where['shopId'] = $this->shopId;
+        $classId = Yii::$app->request->get('classId', 0);
+        if (!empty($classId)) {
+            $where['classId'] = $classId;
+        }
         $status = Yii::$app->request->get('status', 0);
         if (!empty($status)) {
             $where['status'] = $status;