修改检测检测当前医生是否和患者存在未完成问诊订单如惨

This commit is contained in:
2023-08-28 09:05:14 +08:00
parent 48f180dbb1
commit a47dccdedc
3 changed files with 33 additions and 31 deletions
+2 -1
View File
@@ -1690,7 +1690,7 @@ class CallBackController extends AbstractController
// 检测当前医生是否和患者存在未完成问诊订单
$InquiryService = new InquiryService();
$order_inquiry = $InquiryService->checkPatientDoctorProgressInquiry($order_detection['user_id'],$order_detection['doctor_id']);
$order_inquiry = $InquiryService->checkPatientDoctorProgressInquiry($order_detection['patient_id'],$order_detection['doctor_id']);
if(!empty($order_inquiry)){
// 存在问诊订单
$time_diff = $InquiryService->getInquiryFinishTimeDiff($order_inquiry);
@@ -1698,6 +1698,7 @@ class CallBackController extends AbstractController
$time_diff = 60;
}
dump($time_diff);
// 计算时间并重新加入队列
$queue_data = array();
$queue_data['detection_no'] = $order_detection['detection_no'];