From c3539c7cf1a291d12a0d0fc480d35f06dfca8851 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Wed, 24 Sep 2025 10:22:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/service/CustomerService.php | 4 ++++ app/crmAdmin/service/CustomerService.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/crm/service/CustomerService.php b/app/crm/service/CustomerService.php index c08b21d..63274db 100644 --- a/app/crm/service/CustomerService.php +++ b/app/crm/service/CustomerService.php @@ -46,6 +46,7 @@ class CustomerService $sort = $params['sort'] ?? null; $sortId = $params['sort_id'] ?? null; $countryId = $params['country_id'] ?? ''; + $channelId = $params['channel_id'] ?? ''; $where = []; $user_id =$params['user_id']; @@ -62,6 +63,9 @@ class CustomerService if (!empty($countryId)){ $where[] = ['country_id', $countryId]; } + if (!empty($channelId)){ + $where[] = ['channel_id', $channelId]; + } $grade = []; if (!Util::isEmpty($follow) && $follow == 0) { diff --git a/app/crmAdmin/service/CustomerService.php b/app/crmAdmin/service/CustomerService.php index 41bf5d7..56d42f1 100644 --- a/app/crmAdmin/service/CustomerService.php +++ b/app/crmAdmin/service/CustomerService.php @@ -53,6 +53,7 @@ class CustomerService $user_id = $params['user_id'] ?? ''; $seas = $params['seas'] ?? ''; //recyclea:管理端回收站,audit:待审核列表,seas:公海 $scene = $params['scene'] ?? ''; + $channelId = $params['channel_id'] ?? ''; $where = []; if ($scene == 'audit') { @@ -69,6 +70,9 @@ class CustomerService // $where[] = ['user_id', $user_id]; // } + if (!empty($channelId)){ + $where[] = ['channel_id', $channelId]; + } $grade = []; if (!Util::isEmpty($follow) && $follow == 0) { From 04208b3b5c87347562104704ed75b9298618581e Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Wed, 24 Sep 2025 15:42:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/VehVehicleSkuService.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/common/service/VehVehicleSkuService.php b/app/common/service/VehVehicleSkuService.php index 0fa8649..e494122 100644 --- a/app/common/service/VehVehicleSkuService.php +++ b/app/common/service/VehVehicleSkuService.php @@ -91,10 +91,26 @@ class VehVehicleSkuService case 'default': $config['where']['is_active'] = 1; $config['order']['id'] = 'desc'; + + // 关键字筛选 + if (isset($p['keyword']) && $p['keyword']) { + $k = '%' . $p['keyword'] . '%'; + foreach (['model_name','series_name','brand_name',] as $col) { + $config['orWhere'][] = [$col, 'like', $k]; + } + } break; case 'index': $config['where']['is_active'] = 1; $config['order']['id'] = 'desc'; + + // 关键字筛选 + if (isset($p['keyword']) && $p['keyword']) { + $k = '%' . $p['keyword'] . '%'; + foreach (['model_name','series_name','brand_name',] as $col) { + $config['orWhere'][] = [$col, 'like', $k]; + } + } break; case 'show': $config['where']['id'] = $p['id'];