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