Commit e1600f77 authored by hujun's avatar hujun

app客户手机号模糊搜索

parent ea93c436
...@@ -277,9 +277,9 @@ class Client extends Basic ...@@ -277,9 +277,9 @@ class Client extends Basic
if($search_type == '0') if($search_type == '0')
{ {
//客户电话 //客户电话
$conditions['user_phone'] = ['LIKE', $phone_or_name.'%']; $conditions['user_phone'] = ['LIKE', '%'.$phone_or_name.'%'];
}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'){//客户 elseif ($search_type == '3'){//客户
$conditions['id'] = $phone_or_name; $conditions['id'] = $phone_or_name;
......
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