From deef49bfa68ffc4b8aefd9ecfe3272ced9f4a837 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Apr 2023 09:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=85=8D=E5=8C=BB?= =?UTF-8?q?=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserDoctorService.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 5d06721..d643046 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -1865,6 +1865,19 @@ class UserDoctorService extends BaseService if($inquiry_type == 4){ return ""; } + + // 检测当前时间5分钟后,坐班时间包含某时间的平台深度合作医生 + $doctor_ids = $this->getNowTimePlatDeepCooperationDoctorId($inquiry_type,strtotime ("+5 minute"),$not_doctor_ids); + if (!empty($doctor_ids)){ + Log::getInstance()->info("检测当前时间5分钟后,坐班时间包含某时间的平台深度合作医生:" ,$doctor_ids); + + // 检测医生是否可被分配 + $result = $this->checkDoctorCanBeAssigned($doctor_ids,$patient_id,1,$inquiry_type); + Log::getInstance()->info("检测医生是否可被分配:" ,$result); + if (!empty($result['doctor_id'])){ + return $result['doctor_id']; + } + } } // 获取自由注册医生