Commit f07869ea authored by clone's avatar clone

bug

parent 700069dc
...@@ -40,7 +40,7 @@ class HomePageLog extends Basic ...@@ -40,7 +40,7 @@ class HomePageLog extends Basic
/* $params = array( /* $params = array(
"start_time" => time(), //开始时间 "start_time" => time(), //开始时间
"end_time" => time() . " 23:59:59", //结束时间 "end_time" => time() . " 23:59:59", //结束时间
"name_or_phone" => "li",//用户姓名或电话 "name_or_phone" => "li",//用户姓名或电话 经纪人
"search_content" => "111",// 搜索跟进内容 "search_content" => "111",// 搜索跟进内容
"pageNo" => 1, "pageNo" => 1,
"pageSize" => 15 "pageSize" => 15
...@@ -53,7 +53,7 @@ class HomePageLog extends Basic ...@@ -53,7 +53,7 @@ class HomePageLog extends Basic
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo']; $pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize']; $pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$field = "f.id,f.user_id,f.agent_id,f.type,f.content,f.create_time,a.name,a.img,b.store_name"; $field = "f.id,f.user_id,f.agent_id,f.type,f.content,f.create_time,f.user_status,a.name,a.img,b.store_name";
if (!empty($params["search_content"])) { if (!empty($params["search_content"])) {
$where_["f.content"] = array( "like", "%" . trim($params['search_content']) . "%" ); $where_["f.content"] = array( "like", "%" . trim($params['search_content']) . "%" );
...@@ -64,7 +64,7 @@ class HomePageLog extends Basic ...@@ -64,7 +64,7 @@ class HomePageLog extends Basic
$where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) ); $where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) );
} }
if (!empty($params["name_or_phone"])) { if (!empty($params["name_or_phone"])) {
$where_["u.user_phone|u.user_name"] = array( "like", "%" . trim($params["name_or_phone"]) . "%" ); $where_["a.name|a.phone"] = array( "like", "%" . trim($params["name_or_phone"]) . "%" );
} }
$join = [ $join = [
......
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