@ -112,8 +112,8 @@
and id=#{masterid,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 test="masterid != null and masterid != ''">
</if>)
and patindex('%B%',inp_no) != 0
and id!=#{masterid,jdbcType=VARCHAR}