|
@@ -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()]);
|
|
|
}
|