增加首页 我的医生 处方状态1

This commit is contained in:
2024-11-01 08:59:42 +08:00
parent c3e331a2b5
commit 25e75d4f6d
+5 -1
View File
@@ -691,12 +691,14 @@ class PatientDoctorService extends BaseService
// 获取医生医院
$hospital_name = "";
$hospital_level_name = "";
if (!empty($user_doctor['hospital_id'])){
$params = array();
$params['hospital_id'] = $user_doctor['hospital_id'];
$hospital = Hospital::getOne($params);
if (!empty($hospital)){
$hospital_name = $hospital['hospital_name'];
$hospital_level_name = $hospital['hospital_level_name'] ?? "";
}
}
@@ -706,7 +708,9 @@ class PatientDoctorService extends BaseService
$data['user_name'] = $user_doctor['user_name'];
$data['avatar'] = addAliyunOssWebsite($user_doctor['avatar']);
$data['hospital_name'] = $hospital_name;
$data['hospital_level_name'] = $hospital_level_name;
$data['be_good_at'] = $user_doctor['be_good_at'];
$data['department_custom_name'] = $user_doctor['department_custom_name'];
$data['doctor_title'] = empty($user_doctor['doctor_title']) ? "" : DoctorTitleCode::getMessage($user_doctor['doctor_title']);
// 按照天来计算,当日为1,前一天为2 未服务过为0