无纸化归档功能修改

master
xuhx 4 years ago
parent baa1328ae2
commit 2527a2bdf9

@ -57,7 +57,7 @@
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)+'%'
and visit_id=(select visit_id from Archive_Master where 1=1
and admission_date_time=(select admission_date_time from Archive_Master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
@ -86,7 +86,7 @@
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)+'%'
and visit_id=(select visit_id from Archive_Master where 1=1
and admission_date_time=(select admission_date_time from Archive_Master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
@ -202,7 +202,7 @@
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>
and visit_id=(select visit_id from Archive_Master where 1=1
and admission_date_time=(select admission_date_time from Archive_Master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
@ -223,6 +223,10 @@
and id=#{patientId,jdbcType=VARCHAR}
</if>
)+'%'
and admission_date_time=(select admission_date_time from Archive_Master where 1=1
<if test="patientId != null and patientId != ''">
and id=#{patientId,jdbcType=VARCHAR}
</if>)
and patindex('%B%',inp_no) != 0
union
select id from archive_master where id=#{patientId,jdbcType=VARCHAR}

Loading…
Cancel
Save