This commit is contained in:
2024-05-08 18:25:51 +08:00
parent 5f123fdac7
commit 2d74d0c64d
3 changed files with 9 additions and 6 deletions
+7 -4
View File
@@ -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();
}
}
}