shish 2 anos atrás
pai
commit
5dcef632e1
1 arquivos alterados com 4 adições e 8 exclusões
  1. 4 8
      app-ghs/controllers/OrderController.php

+ 4 - 8
app-ghs/controllers/OrderController.php

@@ -604,18 +604,14 @@ class OrderController extends BaseController
     public function actionList()
     {
         $get = Yii::$app->request->get();
+        $where['mainId'] = $this->mainId;
         $status = $get['status'] ?? 0;
         if (!empty($status)) {
             $where['status'] = $status;
         }
-        $where['sjId'] = $this->sjId;
-        if (isset($get['shopId'])) {
-            $shopId = $get['shopId'] ?? 0;
-            if (!empty($shopId)) {
-                $where['shopId'] = $this->shopId;
-            }
-        } else {
-            $where['shopId'] = $this->shopId;
+        $book = $get['book'] ?? -1;
+        if ($book > -1) {
+            $where['book'] = $book;
         }
         $searchTime = $get['searchTime'] ?? '';
         if (!empty($searchTime)) {