Commit f5620252 authored by hangjun83's avatar hangjun83

发票相关接口

parent 9a66d614
...@@ -81,12 +81,12 @@ class BhuaProductsService ...@@ -81,12 +81,12 @@ class BhuaProductsService
$total = 0; $total = 0;
if($products){ if($products){
$products = app(ProductsTransformer::class)->transform($products); $products = app(ProductsTransformer::class)->transform($products);
$total = $this->bhuaProductService->productRepository->count($where);
} }
$total = $this->bhuaProductService->productRepository->count($where);
$dataReturn = []; $dataReturn = [];
$dataReturn['data'] = $products; $dataReturn['data'] = $products;
$dataReturn['total_page'] = ceil($total / $offset); $dataReturn['total_page'] = ceil($total / $offset) - 1;
$dataReturn['page_no'] = $pageNo; $dataReturn['page_no'] = $pageNo;
return $dataReturn; return $dataReturn;
......
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