shish 1 год назад
Родитель
Сommit
593ca7bdd2
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app-ghs/controllers/ItemController.php

+ 3 - 3
app-ghs/controllers/ItemController.php

@@ -83,7 +83,7 @@ class ItemController extends BaseController
         $search = $get['search'] ?? '';
         $requestType = $get['requestType'] ?? 'kd';
         $classId = $get['classId'] ?? 0;
-        $checkStock = $get['checkStock'] ?? 0;
+        $lookStock = $get['lookStock'] ?? 0;
 
         $where['mainId'] = $this->mainId;
         if ($requestType == 'kd') {
@@ -91,10 +91,10 @@ class ItemController extends BaseController
             $where['status'] = 1;
         } elseif ($requestType == 'itemList') {
             $where['delStatus'] = 0;
-            if($checkStock == 1){
+            if($lookStock == 1){
                 $where['stock>'] = 0;
             }
-            if($checkStock ==2){
+            if($lookStock ==2){
                 $where['stock'] = 0;
             }
             unset($where['status']);