|
@@ -59,7 +59,9 @@
|
|
|
FROM tran_hospital_info a LEFT JOIN tran_hospital_dept b
|
|
|
ON a.`code`=b.hospital_code and b.`status`=1 and b.is_deleted='N' and b.`code`=#{hospitalDeptCode}
|
|
|
LEFT JOIN tran_doctor_info c
|
|
|
- ON b.hospital_code=c.hospital_code and b.`code`=c.hospital_dept_code and c.is_deleted='N' and c.`code`=#{doctorCode}
|
|
|
+ ON b.hospital_code=c.hospital_code
|
|
|
+ <!-- and b.`code`=c.hospital_dept_code -->
|
|
|
+ and c.is_deleted='N' and c.`code`=#{doctorCode}
|
|
|
LEFT JOIN tran_patient_info d
|
|
|
ON a.code=d.hospital_code and d.is_deleted='N' and d.`code`=#{patientCode}
|
|
|
WHERE a.is_deleted='N'
|