From d121c5ddb0f13d3bbac3f8a4490592624b87d876 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 9 Aug 2023 17:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96=E6=82=A3?= =?UTF-8?q?=E8=80=85=E9=97=AE=E8=AF=8A=E7=97=85=E4=BE=8B=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=A3=80=E6=B5=8B=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/InquiryService.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 91ea031..d0f6d16 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -8,11 +8,13 @@ use App\Amqp\Producer\CancelUnpayOrdersDelayDirectProducer; use App\Constants\DoctorTitleCode; use App\Constants\HttpEnumCode; use App\Exception\BusinessException; +use App\Model\DetectionProject; use App\Model\DiseaseClass; use App\Model\DoctorInquiryConfig; use App\Model\Hospital; use App\Model\InquiryCaseProduct; use App\Model\MessageIm; +use App\Model\OrderDetection; use App\Model\OrderEvaluation; use App\Model\OrderInquiry; use App\Model\OrderInquiryCase; @@ -475,6 +477,28 @@ class InquiryService extends BaseService $order_inquiry_case['diagnose_images'] = $diagnose_images; } + // 检测项目 + $order_inquiry_case['detection_project'] = []; + if ($order_inquiry['inquiry_type'] == 5){ + // 获取检测订单 + $params = array(); + $params['order_inquiry_id'] = $order_inquiry['order_inquiry_id']; + $order_detection = OrderDetection::getOne($params); + if (!empty($order_detection)){ + // 获取检测项目 + $params = array(); + $params['detection_project_id'] = $order_detection['detection_project_id']; + $detection_project = DetectionProject::getOne($params); + if (!empty($detection_project)){ + $order_inquiry_case['detection_project']['detection_project_name'] = $detection_project['detection_project_name']; // 检测项目名称 + $order_inquiry_case['detection_project']['detection_time'] = $order_detection['detection_time']; // 检测时间 + $order_inquiry_case['detection_project']['detection_link'] = ""; // 检测结果链接 + } + } + + + } + return success($order_inquiry_case->toArray()); }