Commit 59af2a53 authored by hangjun83's avatar hangjun83

百化产品接口更新

parent 3d581e33
...@@ -166,8 +166,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc ...@@ -166,8 +166,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc
public function getProductsListByBrandId($brandId, $offset, $limit) public function getProductsListByBrandId($brandId, $offset, $limit)
{ {
$productsModel = $this->join('chemicals', 'chemicals.c_id','products.c_id'); $productsModel = $this->join('chemicals', 'chemicals.c_id','products.c_id');
$product = $productsModel->where('products.b_id',$brandId)->get(); $product = $productsModel->where('products.b_id',$brandId)->offset($offset)->limit($limit)->get();
$product = $productsModel->offset($offset)->limit($limit)->get();
if($product){ if($product){
return $product->toArray(); return $product->toArray();
} }
......
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