shish преди 4 години
родител
ревизия
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'] ?? '';