wugg 2 роки тому
батько
коміт
af85651a21
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/admin/controller/Supplier.php

+ 1 - 1
app/admin/controller/Supplier.php

@@ -53,7 +53,7 @@ class Supplier extends BaseController
         if($type!=""){
            $condition []=["type","=",$type];
        }
-        $list =  Db::name("supplier_info")->where($condition)->field("id,code,name,contector,nature,type,mobile,address,post,addtime,LENGTH(companyName) as weight")->order("weight asc")->select();
+        $list =  Db::name("supplier_info")->where($condition)->field("id,code,name,contector,nature,type,mobile,address,post,addtime,LENGTH(companyName) as weight")->limit(20)->order("weight asc")->select();
         return app_show(0,"获取成功",$list);
     }