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

This commit is contained in:
wucongxing8150 2024-11-01 08:58:29 +08:00
parent c3e331a2b5
commit 25e75d4f6d

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