445
This commit is contained in:
parent
5f123fdac7
commit
2d74d0c64d
@ -895,10 +895,13 @@ class DoctorInquiryService extends BaseService
|
||||
if (!empty($doctor_config_follow_package)) {
|
||||
$params = array();
|
||||
$params['follow_package_id'] = $doctor_config_follow_package['follow_package_id'];
|
||||
$doctor_config_follow_package_item = DoctorConfigFollowPackageItem::getList($params);
|
||||
if (!empty($doctor_config_follow_package_item)) {
|
||||
$doctor_config_follow_package_item['monthly_frequency'] = $doctor_config_follow_package['monthly_frequency'];
|
||||
$result = $doctor_config_follow_package_item->toArray();
|
||||
$doctor_config_follow_package_items = DoctorConfigFollowPackageItem::getList($params);
|
||||
if (!empty($doctor_config_follow_package_items)) {
|
||||
foreach ($doctor_config_follow_package_items as &$doctor_config_follow_package_item){
|
||||
$doctor_config_follow_package_item['monthly_frequency'] = $doctor_config_follow_package['monthly_frequency'];
|
||||
$result[] = $doctor_config_follow_package_item->toArray();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -461,7 +461,7 @@ class ImService extends BaseService
|
||||
if ($order_service_package_detail['monthly_frequency'] != 0 && !empty($order_service_package['start_time'])) {
|
||||
$OrderServicePackageService = new OrderServicePackageService();
|
||||
$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_frequencys'] - $month_inquiry_count;
|
||||
$remaining_inquiry_count = $order_service_package_detail['monthly_frequency'] - $month_inquiry_count;
|
||||
if ($remaining_inquiry_count < 0){
|
||||
$remaining_inquiry_count = 0;
|
||||
}
|
||||
|
||||
@ -3282,7 +3282,7 @@ class MessagePush extends BaseService
|
||||
$month_inquiry_count = $OrderServicePackageService->getCurrentMonthInquiryCount($this->order_service_package['pay_time'],$this->order_service_package['order_service_type'],$this->order_service_package['user_id'], $this->order_service_package['doctor_id']);
|
||||
|
||||
// 获取服务包当月剩余问诊次数
|
||||
$remaining_inquiry_count = $order_service_package_detail['monthly_frequencys'] - $month_inquiry_count;
|
||||
$remaining_inquiry_count = $order_service_package_detail['monthly_frequency'] - $month_inquiry_count;
|
||||
if ($remaining_inquiry_count < 0){
|
||||
$remaining_inquiry_count = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user