修改获取患者服务包订单服务权益详情
This commit is contained in:
parent
020f61ac57
commit
1bbfd3e6d6
@ -172,7 +172,7 @@ class OrderServicePackageService extends BaseService
|
|||||||
// 处理当月问诊次数
|
// 处理当月问诊次数
|
||||||
// 3.5号购买,每月2次问诊次数。今天5.3,属于第几个月,这个月的开始时间和结束时间
|
// 3.5号购买,每月2次问诊次数。今天5.3,属于第几个月,这个月的开始时间和结束时间
|
||||||
if ($order_service_package_detail['monthly_frequency'] != 0) {
|
if ($order_service_package_detail['monthly_frequency'] != 0) {
|
||||||
// 获取服务包当月问诊次数
|
// 获取服务包当月已问诊次数
|
||||||
$month_inquiry_count = $this->getCurrentMonthInquiryCount($order_service_package['start_time'],$service_type,$user_info['client_user_id'], $doctor_id);
|
$month_inquiry_count = $this->getCurrentMonthInquiryCount($order_service_package['start_time'],$service_type,$user_info['client_user_id'], $doctor_id);
|
||||||
|
|
||||||
if ($month_inquiry_count >= $order_service_package_detail['monthly_frequency']) {
|
if ($month_inquiry_count >= $order_service_package_detail['monthly_frequency']) {
|
||||||
@ -694,7 +694,7 @@ class OrderServicePackageService extends BaseService
|
|||||||
// 检测问诊次数
|
// 检测问诊次数
|
||||||
// 3.5号购买,每月2次问诊次数。今天5.3,属于第几个月,这个月的开始时间和结束时间
|
// 3.5号购买,每月2次问诊次数。今天5.3,属于第几个月,这个月的开始时间和结束时间
|
||||||
if ($order_service_package_detail['monthly_frequency'] != 0) {
|
if ($order_service_package_detail['monthly_frequency'] != 0) {
|
||||||
// 获取服务包当月问诊次数
|
// 获取服务包当月已问诊次数
|
||||||
$month_inquiry_count = $this->getCurrentMonthInquiryCount($order_service_package['start_time'],$order_service_package['order_service_type'],$user_info['client_user_id'], $order_service_package['doctor_id']);
|
$month_inquiry_count = $this->getCurrentMonthInquiryCount($order_service_package['start_time'],$order_service_package['order_service_type'],$user_info['client_user_id'], $order_service_package['doctor_id']);
|
||||||
|
|
||||||
if ($month_inquiry_count >= $order_service_package_detail['monthly_frequency']) {
|
if ($month_inquiry_count >= $order_service_package_detail['monthly_frequency']) {
|
||||||
@ -1088,7 +1088,7 @@ class OrderServicePackageService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取服务包当月问诊次数
|
* 获取服务包当月已问诊次数
|
||||||
* @param string $start_time
|
* @param string $start_time
|
||||||
* @param string|int $service_type
|
* @param string|int $service_type
|
||||||
* @param string|int $user_id
|
* @param string|int $user_id
|
||||||
|
|||||||
@ -2833,13 +2833,13 @@ class PatientOrderService extends BaseService
|
|||||||
if (in_array($order_service_package['order_service_status'],[3,4,5])){
|
if (in_array($order_service_package['order_service_status'],[3,4,5])){
|
||||||
// 订单状态(1:待支付 2:未开始 3:服务中 4:服务完成 5:服务取消)
|
// 订单状态(1:待支付 2:未开始 3:服务中 4:服务完成 5:服务取消)
|
||||||
if (!empty($order_service_package['start_time'])){
|
if (!empty($order_service_package['start_time'])){
|
||||||
// 当月问诊次数
|
// 当月时间
|
||||||
$result['order_service_package']['month_inquiry_count'] = $OrderServicePackageService->getCurrentMonthInquiryCount($order_service_package['start_time'],$order_service_package['order_service_type'],$user_info['client_user_id'], $order_service_package['doctor_id']);
|
|
||||||
|
|
||||||
// 处理当月时间
|
|
||||||
$current_month_date = $OrderServicePackageService->getCurrentMonthDate($order_service_package['start_time']);
|
$current_month_date = $OrderServicePackageService->getCurrentMonthDate($order_service_package['start_time']);
|
||||||
$result['order_service_package']['current_month_start_date'] = $current_month_date['current_month_start_date'];
|
$result['order_service_package']['current_month_start_date'] = $current_month_date['current_month_start_date'];
|
||||||
$result['order_service_package']['current_month_finish_date'] = $current_month_date['current_month_finish_date'];
|
$result['order_service_package']['current_month_finish_date'] = $current_month_date['current_month_finish_date'];
|
||||||
|
|
||||||
|
// 获取服务包当月已问诊次数
|
||||||
|
$result['order_service_package']['month_inquiry_count'] = $OrderServicePackageService->getCurrentMonthInquiryCount($order_service_package['start_time'],$order_service_package['order_service_type'],$user_info['client_user_id'], $order_service_package['doctor_id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user