Browse Source

库存预警

shish 5 years ago
parent
commit
3fbef2b97d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-ghs/controllers/ProductController.php

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

@@ -123,7 +123,7 @@ class ProductController extends BaseController
                     util::success([]);
                     util::success([]);
                 }
                 }
                 $lackIds = array_filter(array_unique($lackIds));
                 $lackIds = array_filter(array_unique($lackIds));
-                $where[id] = ['in', $lackIds];
+                $where['id'] = ['in', $lackIds];
                 $respond = ProductClass::getList("*", $where, "stock asc");
                 $respond = ProductClass::getList("*", $where, "stock asc");
             } else {
             } else {
                 $respond = ProductClass::getList("*", $where, "inTurn desc");
                 $respond = ProductClass::getList("*", $where, "inTurn desc");