From ae71b4cb28da8891bb9d766a54fd4597cb2634e1 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 7 May 2024 19:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=88=91=E7=9A=84=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E6=9C=88=E8=B4=A6=E5=8D=95=E6=98=8E=E7=BB=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DoctorAccountService.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Services/DoctorAccountService.php b/app/Services/DoctorAccountService.php index 3bc1f19..398e530 100644 --- a/app/Services/DoctorAccountService.php +++ b/app/Services/DoctorAccountService.php @@ -217,6 +217,17 @@ class DoctorAccountService extends BaseService return fail(); } + // 计算本次问诊服务包问诊金额 + if ($result['order_type'] == 4){ + $result['estimate_income'] = bcmul( + (string)$order_service_package_detail['single_inquiry_price'], + (string)$order_service_package_detail['service_count'], + 2 + ); + }else{ + $result['estimate_income'] = (string)$order_service_package_detail['service_price']; + } + // 处理入账金额 $result['estimate_income'] = bcmul((string)$order_service_package_detail['service_price'],"0.75",2); }