Commit d8746ee7 by 赵增煜

问诊人筛选变为身份证号码模糊搜索

parent 94a15580
...@@ -31,7 +31,8 @@ public function patientList(Request $request) ...@@ -31,7 +31,8 @@ public function patientList(Request $request)
} }
$search_input = $request->input('search_input'); $search_input = $request->input('search_input');
if ($search_input) { if ($search_input) {
$query->where('mobile', 'like', "%{$search_input}%"); $query->where('id_card', 'like', "%{$search_input}%");
// ->orWhere('name', 'like', "%{$search_input}%")
// ->orWhere('mobile', 'like', "%{$search_input}%"); // ->orWhere('mobile', 'like', "%{$search_input}%");
} }
// 分页 // 分页
......
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 sign in to comment