Commit 356b887e authored by clone's avatar clone

客户搜索加编号搜索

parent e68d7c20
...@@ -268,7 +268,7 @@ class Client extends Basic ...@@ -268,7 +268,7 @@ class Client extends Basic
$pagesize = 15; $pagesize = 15;
$user_id = $params['user_id']; $user_id = $params['user_id'];
$type = $params['type']; $type = $params['type'];
$search_type = $params['search_type'];#无:'';客户电话:0;客户姓名:1;跟进:2; $search_type = $params['search_type'];#无:'';客户电话:0;客户姓名:1;跟进:2 ; 编号:3
if($search_type == '0') if($search_type == '0')
{ {
...@@ -277,6 +277,9 @@ class Client extends Basic ...@@ -277,6 +277,9 @@ class Client extends Basic
}elseif ($search_type == '1'){//客户 }elseif ($search_type == '1'){//客户
$conditions['user_name'] = ['LIKE', $phone_or_name.'%']; $conditions['user_name'] = ['LIKE', $phone_or_name.'%'];
} }
elseif ($search_type == '3'){//客户
$conditions['id'] = $phone_or_name;
}
if ($search_type != '2') if ($search_type != '2')
{ {
......
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