商品列表

This commit is contained in:
彭桃 2023-02-27 14:53:21 +08:00
parent f3d7d5d79c
commit 9abac14802
2 changed files with 5 additions and 1 deletions

View File

@ -89,6 +89,9 @@ class SpuDao extends BaseDao
])->column('mer_id');
$query->whereIn('P.mer_id',$merId);
})
->when(isset($where['is_good']) && $where['is_good'] !== '',function($query)use($where){
$query->where('P.is_good',$where['is_good']);
})
->when(isset($where['cate_pid']) && $where['cate_pid'], function ($query) use ($where) {
$storeCategoryRepository = app()->make(StoreCategoryRepository::class);
if (is_array($where['cate_pid'])) {

View File

@ -57,7 +57,8 @@ class StoreSpu extends BaseController
'is_trader',
'product_ids',
'mer_id',
'merchant_category_id'
'merchant_category_id',
'is_good'
]);
$where['is_gift_bag'] = 0;
$where['product_type'] = 0;