临时创建的分支
This commit is contained in:
parent
d7b7a0e0b9
commit
f500373f52
@ -124,7 +124,7 @@ class ProductDao extends BaseDao
|
||||
});
|
||||
}
|
||||
$query->withSearch($keyArray, $whereArr)
|
||||
->Join('StoreSpu U', 'Product.product_id = U.product_id')->where('U.product_type', $where['product_type'] ?? 0)
|
||||
->Join('StoreSpu U', 'Product.product_id = U.product_id')
|
||||
->when(($merId !== null), function ($query) use ($merId) {
|
||||
$query->where('Product.mer_id', $merId);
|
||||
})
|
||||
|
@ -54,6 +54,8 @@ class StoreProduct extends BaseController
|
||||
$merId = $mer_id ? $mer_id : null;
|
||||
$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));
|
||||
|
@ -77,8 +77,10 @@ class StoreMicro extends BaseController
|
||||
$find['status']=1;
|
||||
$find['mer_status']=1;
|
||||
$find['old_product_id']=$product_id;
|
||||
$find['slider_image']=explode(',',$find['slider_image']);
|
||||
unset($find['product_id'],$find['create_time']);
|
||||
}
|
||||
/** @var ProductRepository $make */
|
||||
$make = app()->make(ProductRepository::class);
|
||||
$a=$make->create($find,0);
|
||||
if($a){
|
||||
|
Loading…
x
Reference in New Issue
Block a user