调整服务包当月已问诊次数获取方式
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user