시설공단 수정(개인,법인 구분 없으면 자료조회되지 않도록 수정)

main
이범준 4 months ago
parent 8eb3325a50
commit 9c6c51975c

@ -192,8 +192,10 @@
<when test="carDiv == 'personal'">
AND A.CAR_NO = #{carNo}
</when>
<when test='allCarCheck == null or allCarCheck != "Y"'>
<when test="carDiv == 'corp'">
<if test='allCarCheck == null or allCarCheck != "Y"'>
AND A.CAR_NO = #{carNo}
</if>
</when>
<otherwise>
</otherwise>
@ -202,8 +204,11 @@
<when test="carDiv == 'personal'">
AND DGUARD.DECRYPT('ENC', 'COL', D.ENC_RESIDENT_NO) LIKE #{residentNo}||'_______'
</when>
<otherwise>
<when test="carDiv == 'corp'">
AND D.ENC_RESIDENT_NO = DGUARD.ENCRYPT('ENC','COL',#{residentNo})
</when>
<otherwise>
AND 1 != 1
</otherwise>
</choose>
) A1

Loading…
Cancel
Save