From 8098c9ed85b4431cd52fe8695c8dc049b44a4e51 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Fri, 29 Mar 2024 23:00:38 +0800 Subject: [PATCH] 1 --- app/common/model/Goods.php | 1 + 1 file changed, 1 insertion(+) 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); }