From 2005b6eefcad612a480e57b6ba55e675dee9eddd Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 22 Jan 2024 16:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=82=A3=E8=80=85=E9=97=AE?= =?UTF-8?q?=E8=AF=8A=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=80=80=E6=AC=BE=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientOrderService.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index 4b8760e..057046b 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -15,6 +15,7 @@ use App\Model\OrderDetection; use App\Model\OrderInquiry; use App\Model\OrderInquiryCase; use App\Model\OrderInquiryCoupon; +use App\Model\OrderInquiryRefund; use App\Model\OrderPrescription; use App\Model\OrderPrescriptionFile; use App\Model\OrderPrescriptionProduct; @@ -276,6 +277,16 @@ class PatientOrderService extends BaseService unset($user_doctor); } + // 获取退款数据 + $order_inquiry['order_inquiry_refund'] = array(); + + $params = array(); + $params['order_inquiry_id'] = $order_inquiry['order_inquiry_id']; + $order_inquiry_refund = OrderInquiryRefund::getList($params); + if (!empty($order_inquiry_refund)){ + $order_inquiry['order_inquiry_refund'] = $order_inquiry_refund; + } + return success($order_inquiry->toArray()); }