Commit 0d2774bf authored by zhuwei's avatar zhuwei Committed by zw

客户列表

parent ae5d1e48
......@@ -126,6 +126,8 @@ class Client extends Basic
}
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$type = $params['type']? $params['type'] : 0;
//条件
//time_minute_diff 时间差(分)48小时内增加的【拥有经纪人】的客户为--受保护客户
......@@ -137,7 +139,7 @@ class Client extends Basic
// $where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 2880 )
// and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) ";
$where = " (agent_id in(0,{$params['agent_id']}) or agent_id is null or TIMESTAMPDIFF(MINUTE,create_time,'{$time}') > 0 )
and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) ";
and ( user_nick like '%{$params['search']}%' or user_phone like '%{$params['search']}%' ) and user_status=".$type;
$data['search'] = $params['search'];
}
......
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