diff --git a/app/common/model/Goods.php b/app/common/model/Goods.php index 57040f64..a6e996b8 100644 --- a/app/common/model/Goods.php +++ b/app/common/model/Goods.php @@ -479,6 +479,7 @@ class Goods extends BaseModel if (isset($param['profit_rate_max']) && $param['profit_rate_max'] !== '') { $filter[] = ['goods.profit_rate', '<=', $params['profit_rate_max']]; } + $filter[] = ['is_delete', '=', 0]; // 实例化新查询对象 return $query->where($filter); }