商品列表
This commit is contained in:
parent
f3d7d5d79c
commit
9abac14802
@ -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'])) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user