cusomers get add query: city_id, county_id
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user