Commit 6b0fea3e authored by hujun's avatar hujun

客户列表和跟进列表增加省市区搜索

parent 0b2eeba5
...@@ -265,6 +265,18 @@ class Member extends Basic{ ...@@ -265,6 +265,18 @@ class Member extends Basic{
$where['a.source'] = ['<>', 41]; //纯房东 $where['a.source'] = ['<>', 41]; //纯房东
} }
if (!empty($params['province'])) {
$where['a.province'] = $params['province'];
}
if (!empty($params['city'])) {
$where['a.city'] = $params['city'];
}
if (!empty($params['disc'])) {
$where['a.disc'] = $params['disc'];
}
$fields = 'a.id,a.user_nick,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id, $fields = 'a.id,a.user_nick,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,
a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'; a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source';
......
...@@ -85,6 +85,18 @@ class Remark extends Basic ...@@ -85,6 +85,18 @@ class Remark extends Basic
$where['b.district_id'] = $this->params['remark_district_id']; $where['b.district_id'] = $this->params['remark_district_id'];
} }
if (!empty($params['province'])) {
$where['c.province'] = $params['province'];
}
if (!empty($params['city'])) {
$where['c.city'] = $params['city'];
}
if (!empty($params['disc'])) {
$where['c.disc'] = $params['disc'];
}
$field = 'c.id,a.create_time,a.content,b.name as admin,d.name as label_name,c.user_name,c.user_phone,a.user_status'; $field = 'c.id,a.create_time,a.content,b.name as admin,d.name as label_name,c.user_name,c.user_phone,a.user_status';
$data['data']['list'] = $u_phone_follow->getFollowList($pageNo, $pageSize, $order_ = 'a.id desc', $field, $where); $data['data']['list'] = $u_phone_follow->getFollowList($pageNo, $pageSize, $order_ = 'a.id desc', $field, $where);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment