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

+ 1 - 4
app-ghs/controllers/StatItemController.php

@@ -17,10 +17,7 @@ class StatItemController extends BaseController
     {
         $get = Yii::$app->request->get();
         $where = [];
-        $where['shopId'] = $this->shopId;
-        if (isset($get['shopId']) && !empty($get['shopId'])) {
-            $where['shopId'] = $get['shopId'];
-        }
+        $where['mainId'] = $this->mainId;
         $searchTime = $get['searchTime'] ?? 'today';
         if (!empty($searchTime)) {
             $startTime = $get['startTime'] ?? '';