From 5377248d3cb2b04bf3b200ea94e3cc22dc1383d0 Mon Sep 17 00:00:00 2001 From: qianhy Date: Tue, 7 Mar 2023 11:07:57 +0800 Subject: [PATCH] cusomers get add query: city_id, county_id --- api/controllers/wxapp/licheb/Customers.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index 7dc962e3..46c2eb1e 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -649,6 +649,8 @@ class Customers extends Wxapp $status_tp = intval($this->input_param('status_tp')); //状态类型 $admin_ids = $this->input_param('admin_ids');//多选销售人员 $tag_ids = $this->input_param('tag_ids');//多选客户画像 + $city_id = $this->input_param('city_id'); + $county_id = $this->input_param('county_id'); !$page && $page = 1; !$size && $size = 10; @@ -718,6 +720,9 @@ class Customers extends Wxapp $cfrom && $where['cf_title'] = $cfrom; $name && $where["name like '%{$name}%'"] = null; $mobile && $where["mobile like '%$mobile%'"] = null; + $city_id && $where['city_id'] = $city_id; + $county_id && $where['county_id'] = $county_id; + if ($tag_ids) { $pidAry = []; $res_tag = $this->mdCustomerTag->select(["id in ({$tag_ids})" => null], 'id desc', 0, 0, 'pid,id');