From b891856bc1b8c988dc656f66e8a6ae358e9ff96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=98=89?= <445241500@qq.com> Date: Thu, 6 Jun 2024 22:27:51 +0800 Subject: [PATCH] 1 --- app/common/model/Merchant.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/common/model/Merchant.php b/app/common/model/Merchant.php index 65486edd..304b5445 100644 --- a/app/common/model/Merchant.php +++ b/app/common/model/Merchant.php @@ -128,6 +128,13 @@ class Merchant extends BaseModel !empty($params['search']) && $filter[] = ['shop_name|shop_label', 'like', "%{$params['search']}%"]; // 门店状态 isset($params['is_select_mechant']) && $filter[] = ['is_select_mechant', '=', (int)$params['is_select_mechant']]; + + isset($params['shop_name']) && $filter[] = ['shop_name', '=', $params['shop_name']]; + + isset($params['shop_label']) && $filter[] = ['shop_label', '=', $params['shop_label']]; + + isset($params['score']) && $filter[] = ['score', '=', (int)$params['score']]; + return $filter; }