shish 3 rokov pred
rodič
commit
502c4c8a55
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      app-hd/controllers/GhsController.php

+ 3 - 1
app-hd/controllers/GhsController.php

@@ -58,9 +58,11 @@ class GhsController extends BaseController
     //供货商列表 ssh 2021.1.24
     //供货商列表 ssh 2021.1.24
     public function actionList()
     public function actionList()
     {
     {
+        $get = Yii::$app->request->get();
+        $delStatus = isset($get['delStatus']) && is_numeric($get['delStatus']) ? $get['delStatus'] : 0
         $where = [];
         $where = [];
         $where['ownShopId'] = $this->shopId;
         $where['ownShopId'] = $this->shopId;
-        $where['delStatus'] = 0;
+        $where['delStatus'] = $delStatus;
         $respond = GhsClass::getGhsList($where);
         $respond = GhsClass::getGhsList($where);
         util::success($respond);
         util::success($respond);
     }
     }