wugg 6 ماه پیش
والد
کامیت
81b31514c3
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      app/cxinv/controller/Invoice.php

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

@@ -27,7 +27,10 @@ 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']];
-        if($this->level!=1) $whereOr[]=['apply_id','=', $this->uid];
+        if($this->level!=1) {
+            $whereOr[]=['apply_id','=', $this->uid];
+            $whereOr[]=['status','=', 0];
+        }
         $list=$this->model->where($where)->whereOr($whereOr)->order('id desc')->paginate(['page'=>$param['page'],'list_rows'=>$param['size']]);
         return success('获取成功',['list'=>$list->items(),'count'=>$list->total()]);
     }