Commit bc9a687d authored by hangjun83's avatar hangjun83

财务开票模块更新

parent c74cd149
...@@ -41,7 +41,7 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR ...@@ -41,7 +41,7 @@ class InvoiceRecordRepositoryEloquent extends BaseRepository implements InvoiceR
$query = $query->whereIn($whereKey,$whereValue); $query = $query->whereIn($whereKey,$whereValue);
}else{ }else{
if(strtotime($whereValue) && strtotime($whereValue) > 0){ if(strtotime($whereValue) && strtotime($whereValue) > 0){
$query = $query->whereDate($whereKey,'>=',$whereValue); $query = $query->whereDate($whereKey,'=',$whereValue);
}else{ }else{
$query = $query->where($whereKey,$whereValue); $query = $query->where($whereKey,$whereValue);
} }
......
...@@ -832,7 +832,7 @@ class InvoiceService ...@@ -832,7 +832,7 @@ class InvoiceService
} }
if(isset($requestParams['invoice_created_at']) && !empty($requestParams['invoice_created_at'])){ if(isset($requestParams['invoice_created_at']) && !empty($requestParams['invoice_created_at'])){
$where['created_at'] = date('Y-m-d H:i:s',strtotime($requestParams['invoice_created_at'])); $where['created_at'] = date('Y-m-d',strtotime($requestParams['invoice_created_at']));
} }
$invoiceList = $this->invoiceRecordRepository->getList($where,$limit,$offset); $invoiceList = $this->invoiceRecordRepository->getList($where,$limit,$offset);
......
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