修正获取服务包关联问诊订单消息内页基础数据6
This commit is contained in:
parent
de9a666b79
commit
666cd06c82
@ -3100,17 +3100,31 @@ class PatientOrderService extends BaseService
|
||||
$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'];
|
||||
|
||||
// 获取服务包当月已问诊次数
|
||||
if (!empty($order_service_package['pay_time'])){
|
||||
// 获取服务包当月已问诊/剩余次数
|
||||
if ($order_service_package_detail['monthly_frequency'] != 0) {
|
||||
$OrderServicePackageService = new OrderServicePackageService();
|
||||
$result['order_service_package_detail']['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']);
|
||||
|
||||
// 获取服务包当月已问诊次数
|
||||
$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']);
|
||||
|
||||
// 获取服务包当月剩余问诊次数
|
||||
$remaining_inquiry_count = $order_service_package_detail['monthly_frequency'] - $month_inquiry_count;
|
||||
if ($remaining_inquiry_count < 0){
|
||||
$remaining_inquiry_count = 0;
|
||||
}
|
||||
}else{
|
||||
$remaining_inquiry_count = "不限";
|
||||
$month_inquiry_count = "不限";
|
||||
}
|
||||
|
||||
$result['order_service_package_detail']['month_inquiry_count'] = $month_inquiry_count;
|
||||
$result['order_service_package_detail']['remaining_inquiry_count'] = $remaining_inquiry_count;
|
||||
}
|
||||
}
|
||||
|
||||
// 健康包数据
|
||||
if ($order_service_package['order_service_type'] == 1){
|
||||
// 健康包商品数据
|
||||
// 健康包商品订单数据
|
||||
$params = array();
|
||||
$params['order_service_id'] = $order_service_package['order_service_id'];
|
||||
$order_service_package_products = OrderServicePackageProduct::getList($params);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user