Commit 6935e89f authored by hujun's avatar hujun

客户手机号和id去除时间

parent b44f62ae
...@@ -62,13 +62,6 @@ class Member extends Basic{ ...@@ -62,13 +62,6 @@ class Member extends Basic{
$where['a.status'] = ['<>', 1]; $where['a.status'] = ['<>', 1];
} }
//客户手机号
if (!empty($params['phone'])) {
$if_search_user = true;
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
$where['a.user_phone'] = ['LIKE','%'.$params['phone'].'%'];
}
if (!empty($params['user_nick'])) { if (!empty($params['user_nick'])) {
$if_search_user = true; $if_search_user = true;
//$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"']; //$where[0] = ['EXP','a.user_phone LIKE "%'.$this->params['phone'].'%" or a.user_nick LIKE "%'.$this->params['phone'].'%"'];
...@@ -107,30 +100,6 @@ class Member extends Basic{ ...@@ -107,30 +100,6 @@ class Member extends Basic{
} }
} }
// //跟进结束时间
// if (!empty($params['follow_start']) && empty($params['follow_end'])) {
// $where['b.create_time'] = ['> time',$params['follow_start']. ' 00:00:00'];
// $type = 2;
// }
// //跟进时间
// if (!empty($params['follow_end']) && empty($params['follow_start'])) {
// $where['b.create_time'] = ['< time',$params['follow_end']. ' 23:59:59'];
// $type = 2;
// }
//
// //跟进时间
// if (!empty($params['follow_start']) && !empty($params['follow_end'])) {
// $where['b.create_time'] = ['between time', [$params['follow_start']. ' 00:00:00', $params['follow_end'] . ' 23:59:59']];
// $type = 2;
// }
//客户编号
if (!empty($params['id'])) {
$if_search_user = true;
$where['a.id'] = $params['id'];
}
//是否登录过 //是否登录过
if (!empty($params['login_status']) && $params['login_status'] != -1) { if (!empty($params['login_status']) && $params['login_status'] != -1) {
if ($params['login_status'] == 1) { if ($params['login_status'] == 1) {
...@@ -274,6 +243,23 @@ class Member extends Basic{ ...@@ -274,6 +243,23 @@ class Member extends Basic{
$where['a.disc'] = $params['disc']; $where['a.disc'] = $params['disc'];
} }
//客户编号
if (!empty($params['id'])) {
$if_search_user = true;
$where['a.id'] = $params['id'];
unset($where['a.create_time']);
}
//客户手机号
if (!empty($params['phone'])) {
$if_search_user = true;
$where['a.user_phone'] = ['LIKE','%'.$params['phone'].'%'];
if (strlen($params['phone']) == 11) {
unset($where['a.create_time']);
}
}
$fields = 'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label, $fields = 'a.id,a.user_nick,a.create_time,a.user_name,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.user_label,
a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source'; a.user_name,a.status,a.first_login_time,a.last_login_time,a.agent_id,a.vip,a.price_demand,a.industry_type,a.area_demand,a.user_status,a.source';
......
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