Commit c14a44ca by 赵增煜

增加诊断类型

parent 2a32ce6f
...@@ -241,7 +241,7 @@ public function duplicate(Request $request) ...@@ -241,7 +241,7 @@ public function duplicate(Request $request)
$pharmacy = PharmacyModel::query()->where('user_id', $authInfo->id)->first(); $pharmacy = PharmacyModel::query()->where('user_id', $authInfo->id)->first();
# 校验该药店是否已经存在手机号+用户名 # 校验该药店是否已经存在手机号+用户名
$patientInfo = PatientModel::where('mobile', $existingPatient->mobile)->where('name', $existingPatient->name)->where('pharmacy_id', $authInfo->id)->first(); $patientInfo = PatientModel::where('mobile', $existingPatient->mobile)->where('name', $existingPatient->name)->where('pharmacy_id', $authInfo->id)->first();
Log::info('patient=>'. json_encode($patientInfo)); Log::info('patient=>'. json_encode($patientInfo).'=='.json_encode($existingPatient).'=='. $authInfo->id);
if ($patientInfo) { if ($patientInfo) {
return $this->failed('该问诊人信息已存在'); return $this->failed('该问诊人信息已存在');
} }
......
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