修改平台端商品列表查询
This commit is contained in:
parent
5a3176f1aa
commit
5b96056942
@ -789,11 +789,11 @@ class ProductRepository extends BaseRepository
|
||||
break;
|
||||
}
|
||||
if ($productType == 0) {
|
||||
$where['product_type'] = $productType;
|
||||
$where[] = empty($merId) ? ['product_type', 'in', [0, 98]] : ['product_type', 'in', [0]];
|
||||
if (!$merId) $where['is_gift_bag'] = 0;
|
||||
}
|
||||
if ($productType == 1||$productType==98) {
|
||||
$where['product_type'] = $productType;
|
||||
if ($productType == 1) {
|
||||
$where[] = ['product_type', 'in', [$productType]];
|
||||
}
|
||||
if ($productType == 10) {
|
||||
$where['is_gift_bag'] = 1;
|
||||
|
@ -55,7 +55,6 @@ class StoreProduct extends BaseController
|
||||
$where['is_gift_bag'] = 0;
|
||||
$_where = $this->repository->switchType($where['type'], null,0);
|
||||
unset($_where['product_type']);
|
||||
$_where[] = ['product_type', 'in', [0, 98]];
|
||||
unset($_where['star']);
|
||||
$where = array_merge($where, $_where);
|
||||
return app('json')->success($this->repository->getAdminList($merId, $where, $page, $limit));
|
||||
|
Loading…
x
Reference in New Issue
Block a user