|
|
@ -496,11 +496,6 @@ class Goods extends BaseModel |
|
|
|
$filter[] = ['is_new', '=', intval($param['is_new'])]; |
|
|
|
$filter[] = ['is_new', '=', intval($param['is_new'])]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//gj |
|
|
|
|
|
|
|
if (isset($param['merchantId']) && $param['merchantId']) { |
|
|
|
|
|
|
|
$filter[] = ['merchant_id', '=', $param['merchantId']]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($param['paihang'])) { |
|
|
|
if (!empty($param['paihang'])) { |
|
|
|
$filter[] = ['paihang', '>', 0]; |
|
|
|
$filter[] = ['paihang', '>', 0]; |
|
|
|
$query->order('paihang asc'); |
|
|
|
$query->order('paihang asc'); |
|
|
@ -579,8 +574,8 @@ class Goods extends BaseModel |
|
|
|
if (isset($param['is_has_detail']) && $param['is_has_detail'] !== '') { |
|
|
|
if (isset($param['is_has_detail']) && $param['is_has_detail'] !== '') { |
|
|
|
$filter[] = ['goods.is_has_detail', '=', $params['is_has_detail']]; |
|
|
|
$filter[] = ['goods.is_has_detail', '=', $params['is_has_detail']]; |
|
|
|
} |
|
|
|
} |
|
|
|
if (isset($param['merchant_id']) && $param['merchant_id'] !== '') { |
|
|
|
if (isset($param['merchantId']) && $param['merchantId'] !== '') { |
|
|
|
$filter[] = ['goods.merchant_id', '=', $params['merchant_id']]; |
|
|
|
$filter[] = ['goods.merchant_id', '=', $params['merchantId']]; |
|
|
|
} |
|
|
|
} |
|
|
|
if (isset($param['is_jd_remove']) && $param['is_jd_remove'] !== '') { |
|
|
|
if (isset($param['is_jd_remove']) && $param['is_jd_remove'] !== '') { |
|
|
|
$filter[] = ['goods.is_jd_remove', '=', $params['is_jd_remove']]; |
|
|
|
$filter[] = ['goods.is_jd_remove', '=', $params['is_jd_remove']]; |
|
|
|