|
|
|
|
@ -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
|
|
|
|
|
|