Browse Source

急诊历史病历修改

rgb 6 years ago
parent
commit
acc1dd717c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tran-service/src/main/resources/mapper/InquiryInfoMapper.xml

+ 2 - 2
tran-service/src/main/resources/mapper/InquiryInfoMapper.xml

@@ -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">