This commit is contained in:
haomingming
2026-01-06 17:27:49 +08:00
parent fce126bbbd
commit 6a9688b34f
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -1830,9 +1830,9 @@ func (r *ExportService) OrderPrescription(d []*model.OrderPrescription) (string,
DoctorAdvice: v.DoctorAdvice,
}
if v.UserDoctor != nil {
if v.OrderInquiry !=nil && v.OrderInquiry.UserDoctor != nil {
// 医生姓名
data.DoctorName = v.UserDoctor.UserName
data.DoctorName = v.OrderInquiry.UserDoctor.UserName
}
if v.UserPharmacist != nil {