|
|
|
@ -248,9 +248,9 @@
|
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
|
|
, P.RTPYR_BRDT <!-- 납부자 생년월일 -->
|
|
|
|
|
, P.ZIP <!-- 우편번호 -->
|
|
|
|
|
, P.ADDR <!-- 주소 -->
|
|
|
|
|
, P.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, PA.ZIP <!-- 우편번호 -->
|
|
|
|
|
, PA.ADDR <!-- 주소 -->
|
|
|
|
|
, PA.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
|
|
|
|
|
, (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK <!-- 납부자 생년월일 마스크 -->
|
|
|
|
|
, LE.LEVY_EXCL_ID <!-- 부과 제외 ID -->
|
|
|
|
@ -272,6 +272,7 @@
|
|
|
|
|
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
|
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
@ -371,9 +372,9 @@
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
|
|
|
|
|
<when test="by == 'zip'"> P.ZIP </when>
|
|
|
|
|
<when test="by == 'addr'"> P.ADDR </when>
|
|
|
|
|
<when test="by == 'dtlAddr'"> P.DTL_ADDR </when>
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
@ -473,9 +474,9 @@
|
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
|
|
, P.RTPYR_BRDT <!-- 납부자 생년월일 -->
|
|
|
|
|
, P.ZIP <!-- 우편번호 -->
|
|
|
|
|
, P.ADDR <!-- 주소 -->
|
|
|
|
|
, P.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, PA.ZIP <!-- 우편번호 -->
|
|
|
|
|
, PA.ADDR <!-- 주소 -->
|
|
|
|
|
, PA.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
|
|
|
|
|
, (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK <!-- 납부자 생년월일 마스크 -->
|
|
|
|
|
</sql>
|
|
|
|
@ -486,6 +487,7 @@
|
|
|
|
|
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID AND C.SGG_CD = V.SGG_CD AND C.TASK_SE_CD = V.TASK_SE_CD)
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
|
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') <!-- 민원 처리 코드 -->
|
|
|
|
@ -585,9 +587,9 @@
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
|
|
|
|
|
<when test="by == 'zip'"> P.ZIP </when>
|
|
|
|
|
<when test="by == 'addr'"> P.ADDR </when>
|
|
|
|
|
<when test="by == 'dtlAddr'"> P.DTL_ADDR </when>
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
@ -655,17 +657,18 @@
|
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
|
|
, P.RTPYR_BRDT <!-- 납부자 생년월일 -->
|
|
|
|
|
, P.ZIP <!-- 우편번호 -->
|
|
|
|
|
, P.ADDR <!-- 주소 -->
|
|
|
|
|
, P.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, PA.ZIP <!-- 우편번호 -->
|
|
|
|
|
, PA.ADDR <!-- 주소 -->
|
|
|
|
|
, PA.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
|
|
|
|
|
, (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK <!-- 납부자 생년월일 마스크 -->
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="fromNhtTrgt">
|
|
|
|
|
FROM TB_LEVY L
|
|
|
|
|
INNER JOIN TB_CRDN C ON (L.CRDN_ID = C.CRDN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
FROM TB_LEVY L
|
|
|
|
|
INNER JOIN TB_CRDN C ON (L.CRDN_ID = C.CRDN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
|
WHERE L.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
AND L.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
<if test="levyIds != null">
|
|
|
|
@ -771,9 +774,9 @@
|
|
|
|
|
, P.RTPYR_NO <!-- 납부자 번호 -->
|
|
|
|
|
, P.RTPYR_NM <!-- 납부자 명 -->
|
|
|
|
|
, P.RTPYR_BRDT <!-- 납부자 생년월일 -->
|
|
|
|
|
, P.ZIP <!-- 우편번호 -->
|
|
|
|
|
, P.ADDR <!-- 주소 -->
|
|
|
|
|
, P.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, PA.ZIP <!-- 우편번호 -->
|
|
|
|
|
, PA.ADDR <!-- 주소 -->
|
|
|
|
|
, PA.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
, L.LEVY_ID <!-- 부과 ID -->
|
|
|
|
|
, L.INST_CD <!-- 기관 코드 -->
|
|
|
|
|
, L.DEPT_CD <!-- 부서 코드 -->
|
|
|
|
@ -852,11 +855,12 @@
|
|
|
|
|
, L.LEVY_PCPTAX - L.RCVMT_PCPTAX - L.RDCAMT_PCPTAX AS PCPTAX <!-- 본세 -->
|
|
|
|
|
, L.LEVY_ADAMT - L.RCVMT_ADAMT - L.RDCAMT_ADAMT AS ADAMT <!-- 가산금 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
|
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
|
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
|
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectCrdnPayerTrgts" parameterType="map" resultType="dataobject">/* 단속, 납부자, 부과 대장 객체 가져오기(sndngMapper.selectCrdnPayerTrgts) */
|
|
|
|
|