Commit e062227c authored by hangjun83's avatar hangjun83

财务开票模块更新

parent d2b79e72
...@@ -39,11 +39,15 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR ...@@ -39,11 +39,15 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR
foreach($where as $whereKey => $whereValue){ foreach($where as $whereKey => $whereValue){
if(is_array($whereValue)){ if(is_array($whereValue)){
$query = $query->whereIn($whereKey,$whereValue); $query = $query->whereIn($whereKey,$whereValue);
}else{
if(strtotime($whereValue) && strtotime($whereValue) > 0){
$query = $query->where($whereKey,'>=',$whereValue);
}else{ }else{
$query = $query->where($whereKey,$whereValue); $query = $query->where($whereKey,$whereValue);
} }
} }
} }
}
$result = $query->offset($offset)->limit($limit)->orderBy('id', 'desc')->get()->toArray(); $result = $query->offset($offset)->limit($limit)->orderBy('id', 'desc')->get()->toArray();
return $result; return $result;
} }
......
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