|
@@ -47,12 +47,12 @@
|
|
|
modifier AS doctorIdSecond,
|
|
|
content_value AS diagnoseSecond
|
|
|
FROM tran_inquiry_detail
|
|
|
- WHERE type=9) b
|
|
|
+ WHERE is_deleted='N' AND type=9) b
|
|
|
ON a.id=b.inquiryId
|
|
|
LEFT JOIN tran_hospital_dept c ON a.hospital_dept_id=c.id
|
|
|
LEFT JOIN tran_doctor_info e ON a.doctor_id=e.id
|
|
|
LEFT JOIN tran_doctor_info f ON b.doctorIdSecond=f.id
|
|
|
- WHERE 1=1
|
|
|
+ WHERE 1=1 AND a.is_deleted='N'
|
|
|
AND a.hospital_id=#{hospitalId}
|
|
|
AND a.hospital_dept_id=#{hospitalDeptId}
|
|
|
<if test="sysType!=null">
|