调整服务包当月已问诊次数获取方式

This commit is contained in:
2024-05-09 09:18:09 +08:00
parent 7409abe741
commit 726cb70bfc
5 changed files with 71 additions and 11 deletions
+7 -1
View File
@@ -3317,7 +3317,13 @@ class PatientOrderService extends BaseService
$result['order_service_package']['current_month_finish_date'] = $current_month_date['current_month_finish_date'];
// 获取服务包当月已问诊次数
$month_inquiry_count = $OrderServicePackageService->getCurrentMonthInquiryCount($order_service_package['pay_time'], $order_service_package['order_service_type'], $order_service_package['user_id'], $order_service_package['doctor_id']);
$is_first = $OrderServicePackageService->isFirstInquiryServicePackage($order_service_package['order_service_no']);
if ($is_first){
// 首次必定只问诊了一次
$month_inquiry_count = 1;
}else{
$month_inquiry_count = $OrderServicePackageService->getCurrentMonthInquiryCount($order_service_package['pay_time'], $order_service_package['order_service_type'], $order_service_package['user_id'], $order_service_package['doctor_id']);
}
// 获取服务包当月剩余问诊次数
if ($order_service_package_detail['monthly_frequency'] != 0) {