Commit 9a04ca8d authored by zhuwei's avatar zhuwei

客户列表排除纯房东

parent 2d357651
......@@ -578,11 +578,12 @@ class User extends Basic
}
//跟进人名字
if (!empty($this->params['remark_name'])) {
if (mb_strlen($this->params['remark_name']) < 2) {
// return $this->response(101, '名字长度不足2位');
return $this->response(101, '名字长度不足2位');
}
$agent_where['a.name'] = [ 'LIKE', '%' . $this->params['remark_name'] . '%' ];
$agent_where['name'] = [ 'LIKE', '%' . $this->params['remark_name'] . '%' ];
}
//跟进人手机号
......@@ -617,7 +618,7 @@ class User extends Basic
}
if (!empty($agent_where)) {
$m_agent = new AAgents();
$m_agent = new AAgents();
$agent_id_arr = $m_agent->getAgentById('id', $agent_where);
if (empty($agent_id_arr)) {
......@@ -641,6 +642,8 @@ class User extends Basic
$where['a.id'] = [ 'lt', $params['id'] ];
$order = 'a.id desc';
}
// dump($where);exit;
$field = 'a.id,a.user_id,b.user_nick,b.user_nick,b.agent_id,b.vip,b.create_time';
$model = new UPhoneFollowPp();
$model_res = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = 1, $order);
......
......@@ -288,6 +288,9 @@ class Member extends Basic{
$where['a.referrer_source'] = 10 ;
}
//'客户列表' 需要排除排除纯房东客户
$where['a.user_label'] = array( "neq", 2 );
$fields = 'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
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';
......
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