SQL오류 수정(납부자주소 관련)

main
이범준 6 months ago
parent d254fddfc9
commit 2ad91cc78f

@ -517,8 +517,8 @@
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when> <when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when> <when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when> <when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
<when test="by == 'addr'"> P.ADDR </when> <when test="by == 'addr'"> PA.ADDR </when>
<when test="by == 'dtlAddr'"> P.DTL_ADDR </when> <when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
</choose> </choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" /> <include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when> </when>

@ -238,10 +238,10 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
</if> </if>
</when> </when>
<when test="item.name == 'rtpyrAddr'"> <when test="item.name == 'rtpyrAddr'">
AND P.ADDR LIKE CONCAT ('%' , #{item.value} , '%') AND PA.ADDR LIKE CONCAT ('%' , #{item.value} , '%')
</when> </when>
<when test="item.name == 'rtpyrDtlAddr'"> <when test="item.name == 'rtpyrDtlAddr'">
AND P.DTL_ADDR LIKE CONCAT ('%' , #{item.value} , '%') AND PA.DTL_ADDR LIKE CONCAT ('%' , #{item.value} , '%')
</when> </when>
<when test="item.name == 'gojiNo'"> <when test="item.name == 'gojiNo'">
AND CONCAT(L.FYR, '-', L.LEVY_NO) = #{item.value} AND CONCAT(L.FYR, '-', L.LEVY_NO) = #{item.value}
@ -345,7 +345,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
<when test="by == 'rcvmtPcptax'">L.RCVMT_PCPTAX</when> <when test="by == 'rcvmtPcptax'">L.RCVMT_PCPTAX</when>
<when test="by == 'rcvmtAdamt'">L.RCVMT_ADAMT</when> <when test="by == 'rcvmtAdamt'">L.RCVMT_ADAMT</when>
<when test="by == 'crdnRegSeCd'">C.CRDN_REG_SE_CD</when> <when test="by == 'crdnRegSeCd'">C.CRDN_REG_SE_CD</when>
<when test="by == 'rtpyrFullAddr'">CONCAT(P.ADDR,' ',P.DTL_ADDR)</when> <when test="by == 'rtpyrFullAddr'">CONCAT(PA.ADDR,' ',PA.DTL_ADDR)</when>
<when test="by == 'rtpyrSttsCd'">P.RTPYR_STTS_CD</when> <when test="by == 'rtpyrSttsCd'">P.RTPYR_STTS_CD</when>
</choose> </choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" /> <include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />

Loading…
Cancel
Save