病案示踪查询不查已封存病历 6/17 wzq

master
wzqgit 4 years ago
parent 2689ad946a
commit 77b9a46879

@ -510,7 +510,7 @@
LEFT JOIN(select archive_detail_id,count(*) numb from emr_fault_detail where 1=1 and content!='' and content is not null and back_flag is not null GROUP BY archive_detail_id) s
on m.id=s.archive_detail_id
where 1=1
and m.ArchiveState not in('作废')
and m.ArchiveState not in('作废','已封存')
<if test="id != null and id != ''">
and m.id = #{id,jdbcType=NVARCHAR}
</if>

Loading…
Cancel
Save