Ver código fonte

列表筛选优化

wufeng 2 anos atrás
pai
commit
1750f4af6b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/admin/controller/Supplier.php

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

@@ -214,7 +214,7 @@ class Supplier extends BaseController
 
         $post = $this->request->only(['code'=>'','name'=>'','page'=>1,'size'=>10],'post','trim');
 
-        $where=[['type','<>',3]];//type==3业务公司,其他都是供应商
+        $where = [['type', '=', '正式供应商']];
 
         if($post['code']!=='') $where[]=['code','like','%'.$post['code'].'%'];
         if($post['name']!=='') $where[]=['name','like','%'.$post['name'].'%'];