Commit 79234f17 authored by zhuwei's avatar zhuwei

搜索条件

parent 525eb122
......@@ -45,7 +45,7 @@ class MarchIn extends Basic
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
//搜索条件 start
//1.评价时间
//1.进场时间
if (!empty($params['create_time_start']) && !empty($params['create_time_end'])) {
$where['a.create_time'] = ['between time', [$params['create_time_start']. ' 00:00:00', $params['create_time_end'] . ' 23:59:59']];
}
......@@ -57,18 +57,30 @@ class MarchIn extends Basic
if (!empty($params['store_id'])) {
$where['c.store_id'] = $params['store_id'];
}
//4.姓名
//4.客户姓名
if (!empty($params['user_name'])) {
$where['b.user_name'] = ['LIKE','%'.$params['user_name'].'%'];
}
//5.手机号
//5.客户手机号
if (!empty($params['user_phone'])) {
$where['b.user_phone'] = ['LIKE','%'.$params['user_phone'].'%'];
}
//6.报备人手机号
if (!empty($params['user_phone'])) {
$where['b.user_phone'] = ['LIKE','%'.$params['user_phone'].'%'];
}
//7.报备人姓名
if (!empty($params['user_phone'])) {
$where['b.user_phone'] = ['LIKE','%'.$params['user_phone'].'%'];
}
//8.商铺名
if (!empty($params['user_phone'])) {
$where['b.user_phone'] = ['LIKE','%'.$params['user_phone'].'%'];
}
//9.商铺类型
if (!empty($params['user_phone'])) {
$where['b.user_phone'] = ['LIKE','%'.$params['user_phone'].'%'];
}
//6.进场时间
//if (!empty($params['registration_start']) && !empty($params['registration_end'])) {
//$where['a.registration_time'] = ['between time', [$params['registration_start']. ' 00:00:00', $params['registration_end'] . ' 23:59:59']];
//}
//搜索条件 end
$fields_evaluate = 'd.user_name,d.user_phone,a.create_time,d.report_agent_name,d.report_agent_phone,e.store_name,c.house_title';
......
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