Commit 36a1c195 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent a0a26041
......@@ -37,7 +37,11 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR
$query = $this;
if(!empty($where)){
foreach($where as $whereKey => $whereValue){
$query = $query->where($whereKey,$whereValue);
if(is_array($whereValue)){
$query = $query->whereIn($whereKey,$whereValue);
}else{
$query = $query->where($whereKey,$whereValue);
}
}
}
$result = $query->offset($offset)->limit($limit)->get()->toArray();
......@@ -59,7 +63,7 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR
public function getNotResultInvoiceRecord()
{
return $this->getList(['invoice_status' => '-1']);
return $this->getList(['invoice_status' => ['-1','2']]);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment