Commit af2e8624 authored by zhuwei's avatar zhuwei

客户列表增加

parent 76da2f2b
......@@ -59,17 +59,18 @@ class User extends Basic
public function searchUser()
{
$params = $this->params;
/* $params = array(
"user_status" => 1,//客户状态(0:求租;1:已租;-1:无效)
/*$params = array(
"user_status" => 0,//客户状态(0:求租;1:已租;-1:无效)
"yetai" => "休闲娱乐",
"area_start" => 45,//面积起始范围 room_area2
"area_start" => 1,//面积起始范围 room_area2
"area_end" => 65,//面积结束范围
"money_start" => 1000,//租金 price2
"money_start" => 1,//租金 price2
"money_end" => 10000,//租金
"start_time" => "2018-05-25",
"start_time" => "2016-05-25",
"end_time" => "2018-05-30",
"pageNo" => 1,
"pageSize" => 15
"pageSize" => 15,
"status" => -1,
);*/
$field = "id as user_id,sex,user_name,user_phone,user_status,agent_id,create_time,industry_type,price_demand,area_demand";
......@@ -111,6 +112,10 @@ class User extends Basic
$conditions['create_time'] = array( 'between', array( $start_time, $end_time ) );
}
if (isset($params['status'])) {
$conditions['status'] = $params['status'] ;
}
$userList = $this->userModel->selectUserList($field, $conditions,$pageNo, $pageSize, "id desc");
if (empty($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