|
@@ -67,6 +67,8 @@
|
|
|
where a.is_deleted = 'N' and b.is_deleted = 'N' and c.is_deleted = 'N' and d.is_deleted = 'N'
|
|
|
and a.id = c.cases_entry_id
|
|
|
and a.mode_id = b.id
|
|
|
+ AND c.cases_id = d.cases_id
|
|
|
+ and c.hospital_id = d.hospital_id
|
|
|
and c.hospital_id = #{hospitalId}
|
|
|
and c.behospital_code = #{behospitalCode}
|
|
|
order by a.order_no
|