Commit ba17e06b authored by zhuwei's avatar zhuwei

我的客户 不排除纯房东

parent 130e5eae
...@@ -149,11 +149,15 @@ class User extends Basic ...@@ -149,11 +149,15 @@ class User extends Basic
if (isset($params["agent_id"])) { if (isset($params["agent_id"])) {
$conditions['agent_id'] = $params['agent_id']; $conditions['agent_id'] = $params['agent_id'];
$is_search = false; $is_search = false;
//是我的客户就显示全部
}else{
//不是我的客户排除纯房东
$conditions['user_label'] = array( "neq", 2 );
} }
if (!$is_search) { /*if (!$is_search) {
$conditions['user_label'] = array( "neq", 2 ); $conditions['user_label'] = array( "neq", 2 );
} }*/
$userList = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, "id desc"); $userList = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, "id desc");
//dump($userList); //dump($userList);
......
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