|
|
@ -479,6 +479,7 @@ class Goods extends BaseModel |
|
|
|
if (isset($param['profit_rate_max']) && $param['profit_rate_max'] !== '') { |
|
|
|
if (isset($param['profit_rate_max']) && $param['profit_rate_max'] !== '') { |
|
|
|
$filter[] = ['goods.profit_rate', '<=', $params['profit_rate_max']]; |
|
|
|
$filter[] = ['goods.profit_rate', '<=', $params['profit_rate_max']]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$filter[] = ['is_delete', '=', 0]; |
|
|
|
// 实例化新查询对象 |
|
|
|
// 实例化新查询对象 |
|
|
|
return $query->where($filter); |
|
|
|
return $query->where($filter); |
|
|
|
} |
|
|
|
} |
|
|
|