Ver código fonte

在路上花材

shish 5 meses atrás
pai
commit
926268f3cf
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      app-ghs/controllers/ItemController.php

+ 4 - 0
app-ghs/controllers/ItemController.php

@@ -415,6 +415,7 @@ class ItemController extends BaseController
         $requestType = $get['requestType'] ?? 'kd';
         $classId = $get['classId'] ?? 0;
         $lookStock = $get['lookStock'] ?? 0;
+        $onStock = $get['onStock'] ?? 0;
 
         $where['mainId'] = $this->mainId;
         if ($requestType == 'kd') {
@@ -428,6 +429,9 @@ class ItemController extends BaseController
             if ($lookStock == 2) {
                 $where['stock'] = 0;
             }
+            if($onStock == 1){
+                $where['onStock>'] = 0;
+            }
             unset($where['status']);
         } elseif ($requestType == 'changePrice') {
             $where['delStatus'] = 0;