diff --git a/src/main/resources/mapper/Archive_DetailMapper.xml b/src/main/resources/mapper/Archive_DetailMapper.xml index 361273b7..9d1a6a3c 100644 --- a/src/main/resources/mapper/Archive_DetailMapper.xml +++ b/src/main/resources/mapper/Archive_DetailMapper.xml @@ -112,8 +112,8 @@ and id=#{masterid,jdbcType=VARCHAR} )+'%' and admission_date_time=(select admission_date_time from Archive_Master where 1=1 - - and id=#{patientId,jdbcType=VARCHAR} + + and id=#{masterid,jdbcType=VARCHAR} ) and patindex('%B%',inp_no) != 0 and id!=#{masterid,jdbcType=VARCHAR}