|
|
|
@ -503,6 +503,10 @@ class Goods extends BaseModel |
|
|
|
|
if (isset($param['spec_type']) && $param['spec_type'] !== '') { |
|
|
|
|
$filter[] = ['spec_type', '=', $params['spec_type']]; |
|
|
|
|
} |
|
|
|
|
//gj |
|
|
|
|
if (isset($param['merchantId']) && $param['merchantId']) { |
|
|
|
|
$filter[] = ['goods.merchant_id', '=', $param['merchantId']]; |
|
|
|
|
} |
|
|
|
|
//是否店内 |
|
|
|
|
//if (isset($param['is_in_store']) && $param['is_in_store'] !== '') { |
|
|
|
|
if (isset($param['is_in_store']) && $param['is_in_store']) { |
|
|
|
@ -574,9 +578,9 @@ class Goods extends BaseModel |
|
|
|
|
if (isset($param['is_has_detail']) && $param['is_has_detail'] !== '') { |
|
|
|
|
$filter[] = ['goods.is_has_detail', '=', $params['is_has_detail']]; |
|
|
|
|
} |
|
|
|
|
if (isset($param['merchantId']) && $param['merchantId'] !== '') { |
|
|
|
|
$filter[] = ['goods.merchant_id', '=', $params['merchantId']]; |
|
|
|
|
} |
|
|
|
|
// if (isset($param['merchantId']) && $param['merchantId'] !== '') { |
|
|
|
|
// $filter[] = ['goods.merchant_id', '=', $params['merchantId']]; |
|
|
|
|
// } |
|
|
|
|
if (isset($param['is_jd_remove']) && $param['is_jd_remove'] !== '') { |
|
|
|
|
$filter[] = ['goods.is_jd_remove', '=', $params['is_jd_remove']]; |
|
|
|
|
} |
|
|
|
|