base
parent
d526282192
commit
9214b97f52
|
|
@ -49,9 +49,8 @@ class StoreController extends Controller
|
|||
$list = $store->productSpus()
|
||||
->with(['specs'])
|
||||
->filter($input)
|
||||
->field(['product_spus.id'])
|
||||
->wherePivot('status', 1)
|
||||
->groupBy('product_spus.id')
|
||||
->distinct('product_spus.id')
|
||||
->simplePaginate(Paginator::resolvePerPage('per_page', 20, 50));
|
||||
|
||||
return StoreProductSpuResource::collection($list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue