Răsfoiți Sursa

app 花材列表

shish 4 ani în urmă
părinte
comite
ec1edc55d1
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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 = [];
         $where['sjId'] = $this->sjId;
         $where['sjId'] = $this->sjId;
         $where['shopId'] = $this->shopId;
         $where['shopId'] = $this->shopId;
+        $classId = Yii::$app->request->get('classId', 0);
+        if (!empty($classId)) {
+            $where['classId'] = $classId;
+        }
         $status = Yii::$app->request->get('status', 0);
         $status = Yii::$app->request->get('status', 0);
         if (!empty($status)) {
         if (!empty($status)) {
             $where['status'] = $status;
             $where['status'] = $status;