shish 4 лет назад
Родитель
Сommit
c6536a1a87
1 измененных файлов с 2 добавлено и 2 удалено
  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;
         }