This commit is contained in:
wucongxing8150 2024-06-13 14:43:16 +08:00
parent 5536b3517f
commit 2017e1cac4
2 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,9 @@ func (r *DoctorConfigHealthPackageDao) GetDoctorHealthPageSearch(req requests.Ge
return db.Omit("user_password", "salt") return db.Omit("user_password", "salt")
}) })
// 医院表
query = query.Preload("UserDoctor.Hospital")
// 手机号 // 手机号
if req.Mobile != "" { if req.Mobile != "" {
// 医生 // 医生

View File

@ -52,6 +52,10 @@ func GetDoctorConfigHealthPackageListDto(m []*model.DoctorConfigHealthPackage) [
response.LoadUserDoctor(v.UserDoctor) response.LoadUserDoctor(v.UserDoctor)
} }
if v.UserDoctor.Hospital != nil {
response.LoadUserDoctorHospital(v.UserDoctor.Hospital)
}
// 将转换后的结构体添加到新切片中 // 将转换后的结构体添加到新切片中
responses[i] = response responses[i] = response
} }