Browse Source

预警分页

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

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

@@ -116,6 +116,7 @@ class ProductController extends BaseController
         $showPage = Yii::$app->request->get('showPage', 0);
         if ($showPage) {
             if ($type == 'waring') {
+                Yii::$app->params['pageSize'] = 1000;
                 $respond = ProductClass::getList("*", $where, "stock asc");
             } else {
                 $respond = ProductClass::getList("*", $where, "inTurn desc");