Commit 7d6299f7 authored by zhuwei's avatar zhuwei

客户id搜索

parent f824927c
......@@ -260,8 +260,6 @@ class User extends Basic
}
// big_log($conditions);
$field = "id as user_id,sex,user_name,city,user_phone,user_status,agent_id,create_time,industry_type,
price_demand,area_demand,vip,user_label,source_intro,site_ids,entrust_type,concrete_industry";
$return_user_list = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, "id desc");
......@@ -315,6 +313,7 @@ class User extends Basic
/**
* 将经纪人所在城市的客户拍前面
* @param $user_list
......@@ -976,4 +975,37 @@ class User extends Basic
return $this->response("200", "成功");
}
/**
* 关联客户-根据id搜索客户
* @return \think\Response
*/
public function bindUserList()
{
$params = $this->params;
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$conditions['id'] = 0;
if (isset($params['id'])) {
$conditions['id'] = $params['id'];
}
$field = "id as user_id,sex,user_name,city,user_phone";
$return_user_list = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, "id desc");
if (empty($return_user_list)) {
return $this->response("200", "此条件没有找到数据");
}
foreach ($return_user_list as $k => $v) {
$return_user_list[$k]['user_phone'] = substr_replace($return_user_list[$k]['user_phone'], '****', 3, 4);
$return_user_list[$k]['user_name'] = $v['user_name'] && $v['entrust_type'] == 0 ?"{$v['concrete_industry']},{$v['user_name']}":$v['user_name'];
}
$data['total_page'] = count($return_user_list);
$data['user_date'] = $return_user_list;
return $this->response("200", 'request success', $data);
}
}
\ No newline at end of file
......@@ -867,6 +867,7 @@ Route::group('broker', [
//user
'returnSearchCondition' => ['api_broker/User/returnSearchCondition', ['method' => 'get']], //客户搜索条件
'searchUser' => ['api_broker/User/searchUser', ['method' => 'get|post']], //客户搜索
'bindUserList' => ['api_broker/User/bindUserList', ['method' => 'get|post']], //关联客户-根据id搜索客户
'getLastOrNextUserID' => ['api_broker/User/getLastOrNextUserID', ['method' => 'get|post']], //
'superviseListNew' => ['api_broker/Supervise/superviseList', ['method' => 'POST|GET']], //监督执行列表
......
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