|
|
@@ -83,6 +83,9 @@ class SpuDao extends BaseDao
|
|
|
->when(isset($where['product_ids']) && $where['product_ids'] !== '',function($query)use($where){
|
|
|
$query->whereIn('P.product_id',$where['product_ids']);
|
|
|
})
|
|
|
+ ->when(isset($where['type']) && $where['type'] !== '',function($query)use($where){
|
|
|
+ $query->where('P.type',$where['type']);
|
|
|
+ })
|
|
|
->when(isset($where['keyword']) && $where['keyword'] !== '',function($query)use($where){
|
|
|
if (is_numeric($where['keyword'])) {
|
|
|
$query->whereLike("S.store_name|S.keyword|S.product_id", "%{$where['keyword']}%");
|