shish преди 5 години
родител
ревизия
42a5e3178c
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 3 0
      app-ghs/controllers/ShopCapitalController.php
  2. 3 0
      app-hd/controllers/ShopCapitalController.php

+ 3 - 0
app-ghs/controllers/ShopCapitalController.php

@@ -13,9 +13,12 @@ class ShopCapitalController extends BaseController
 
     public function actionList()
     {
+        $get = Yii::$app->request->get();
         $where = [];
+        $io = $get['id'] ?? 1;
         $where['sjId'] = $this->sjId;
         $where['shopId'] = $this->shopId;
+        $where['io'] = $io;
         $list = ShopCapitalClass::getCapitalList($where);
         util::success($list);
     }

+ 3 - 0
app-hd/controllers/ShopCapitalController.php

@@ -13,9 +13,12 @@ class ShopCapitalController extends BaseController
 
     public function actionList()
     {
+        $get = Yii::$app->request->get();
         $where = [];
+        $io = $get['id'] ?? 1;
         $where['sjId'] = $this->sjId;
         $where['shopId'] = $this->shopId;
+        $where['io'] = $io;
         $list = ShopCapitalClass::getCapitalList($where);
         util::success($list);
     }