修复终审列表重复

master
zengwh 3 years ago
parent cce7c04515
commit 9fb299879e

@ -420,8 +420,8 @@
on emr_fault_detail.archive_detail_id = m.ID
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and back_flag in ('2','6') GROUP BY archive_detail_id) sNurse
on m.id=sNurse.archive_detail_id
left join Archive_Master_Following amf
on m.id=amf.master_id and amf.following_type=9
left join (select distinct master_id,following_type from Archive_Master_Following where following_type=9) amf
on m.id=amf.master_id
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
LEFT JOIN archive_other ao

Loading…
Cancel
Save