Commit 2cd51921 by 赵增煜

增加诊断类型

parent 35e0bc38
......@@ -243,7 +243,9 @@ public function duplicate(Request $request)
$patientInfo = PatientModel::where('mobile', $existingPatient->mobile)->where('name', $existingPatient->name)->where('pharmacy_id', $pharmacy->id)->first();
# Log::info('patient=>'. json_encode($patientInfo).'=='.json_encode($existingPatient).'=='. $pharmacy->id);
if ($patientInfo) {
return $this->failed('该问诊人信息已存在');
# return $this->failed('该问诊人信息已存在');
# return $this->failed('该问诊人信息已存在', ['data' => false], 200);
return $this->success($patientInfo);
}
if ($pharmacy) {
$newPatient->pharmacy_id = $pharmacy->id;
......
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