Commit 3dbe0c19 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent cda49f52
...@@ -60,12 +60,13 @@ class BhuaProductsService ...@@ -60,12 +60,13 @@ class BhuaProductsService
throw new \Exception('品牌id不在授权范围之内',502); throw new \Exception('品牌id不在授权范围之内',502);
} }
$offset = !isset($requestParams['page_size']) || empty($requestParams['page_size']) ? 2000 : $requestParams['page_size']; $offset = !isset($params['page_size']) || empty($params['page_size']) ? 200 : $params['page_size'];
if($offset > 200){ if($offset > 200){
$offset = 200; $offset = 200;
} }
$pageNo = !isset($requestParams['page_no']) || empty($requestParams['page_no']) ? 1 : $requestParams['page_no']; $pageNo = !isset($params['page_no']) || empty($params['page_no']) ? 1 : $params['page_no'];
$limit = $pageNo == 1 ? 0 : $pageNo * $offset; $limit = $pageNo == 1 ? 0 : $pageNo * $offset;
try{ try{
$brand = $this->bhuaProductService->brandsRepository->getBrandById($params['brand_id']); $brand = $this->bhuaProductService->brandsRepository->getBrandById($params['brand_id']);
if(!$brand){ if(!$brand){
......
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