wugg há 6 meses atrás
pai
commit
b7ed052b81
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/cxinv/controller/Invoice.php

+ 1 - 1
app/cxinv/controller/Invoice.php

@@ -31,7 +31,7 @@ class Invoice extends Base{
         if($param['invoice_number']!=="") $where[]=["invoice_number","like","%".$param['invoice_number']."%"];
         if($param['invoice_type']!=="") $where[]=["invoice_type","=",$param['invoice_type']];
         if($param['apply_id']!=="") $where[]=["apply_id","=",$param['apply_id']];
-        $list=$this->model->where($where)->order("id desc")->paginate(["page"=>$param['page'],"list_rows"=>$param['size']]);
+        $list=$this->model->where($where)->whereOr([["apply_id","=",$param['apply_id']]])->order("id desc")->paginate(["page"=>$param['page'],"list_rows"=>$param['size']]);
         return success("获取成功",["list"=>$list->items(),"count"=>$list->total()]);
     }