Commit 6fb540e9 by 赵增煜

fix

parent 2c421dbe
......@@ -54,7 +54,7 @@ public function search()
try {
$pharmacy_id = Admin::user()->pharmacy_id;
// 获取处方信息
$prescription = PrescriptionModel::where('id', $prescriptionNo)->where('pharmacy_id',$pharmacy_id)->where('status', PrescriptionModel::PRESCRIPTION_STATUS_SUCCESS)->first();
$prescription = PrescriptionModel::where('id', $prescriptionNo)->where('pharmacy_id', $pharmacy_id)->where('status', PrescriptionModel::PRESCRIPTION_STATUS_SUCCESS)->first();
if (! $prescription) {
return response()->json(['status' => false, 'message' => '未找到该处方或还未审方成功~']);
}
......
......@@ -17,7 +17,6 @@ public function test()
{
return $this->success(['a' => 1, 'b' => 2, 'c' => 3]);
}
// 获取问诊人列表
public function patientList(Request $request)
......@@ -34,7 +33,7 @@ public function patientList(Request $request)
if ($search_input) {
$query->where(function ($q) use ($search_input) {
$q->where('id_card', 'like', "%{$search_input}%")
->orWhere('name', 'like', "%{$search_input}%");
->orWhere('name', 'like', "%{$search_input}%");
});
// $query->where('id_card', 'like', "%{$search_input}%");
// $query->orWhere('name', '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