Ver Fonte

显示优化

shish há 4 anos atrás
pai
commit
c6536a1a87
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app-ghs/controllers/ProductController.php

+ 2 - 2
app-ghs/controllers/ProductController.php

@@ -45,9 +45,9 @@ class ProductController extends BaseController
             $where['py'] = $pyName;
         }
         if ($requestType == 'changePrice') {
-
+            //改价只显示库存大于0的
+            $where['stock>'] = 0;
         }
-        $where['stock>'] = 0;
         if (!empty($status)) {
             $where['status'] = $status;
         }