wuggemail@foxmail.com 3 months ago
parent
commit
44545504cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/cxinv/controller/FinancialManager.php

+ 2 - 2
app/cxinv/controller/FinancialManager.php

@@ -13,12 +13,12 @@ class FinancialManager extends Base{
         $this->model=new \app\cxinv\model\FinancialManager();
     }
     public function List(){
-        $param = $this->request->param(["code"=>"","type"=>"","seller_code"=>"","buyer_code"=>"","orderCode"=>"","cxCode"=>"",
+        $param = $this->request->param(["code"=>"","type"=>[],"seller_code"=>"","buyer_code"=>"","orderCode"=>"","cxCode"=>"",
         "goodNo"=>"","inv_number"=>"","inv_buyer_code"=>"",'channel'=>[],'status'=>"","manager_status"=>"","start"=>"","end"=>"",
         "page"=>1,"size"=>15],"post","trim");
         $where=[];
         if($param['code']!="") $where[]= ["code","=","%{$param['code']}%"];
-        if($param['type']!="") $where[]= ["type","=",$param['type']];
+        if(!empty($param['type'])) $where[]= ["type","in",$param['type']];
         if(!empty($param['channel'])) $where[]= ["channel","in",$param['channel']];
         if($param['manager_status']!="") $where[]= ["manager_status","=",$param['manager_status']];
         if($param['status']!="") $where[]= ["status","=",$param['status']];