This commit is contained in:
haomingming 2026-01-06 15:04:37 +08:00
parent 916b788b1b
commit 198f37fa42

View File

@ -347,7 +347,7 @@ func (r *OrderPrescriptionDao) GetOrderPrescriptionTransferPageSearch(req reques
// 使用 OR 条件:患者匹配 OR 抄方医生匹配 OR 就诊人匹配 // 使用 OR 条件:患者匹配 OR 抄方医生匹配 OR 就诊人匹配
query = query.Where(prescriptionTable+".patient_id IN (?)", patientSubQuery). query = query.Where(prescriptionTable+".patient_id IN (?)", patientSubQuery).
Or(inquiryTable+".transfer_doctor_id IN (?)", transferDoctorSubQuery). Or(inquiryTable+".doctor_id IN (?)", transferDoctorSubQuery).
Or(prescriptionTable+".family_id IN (?)", patientFamilySubQuery) Or(prescriptionTable+".family_id IN (?)", patientFamilySubQuery)
} }