From 10c480d7f2432aa0923c4d88536c736952d73d9d Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 27 May 2024 08:47:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=A9=EB=B6=80=EC=9E=90=20=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20=EB=B3=80=EA=B2=BD=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=9C=20=EC=BF=BC=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml | 13 +++++++------ .../mapper/fims/sprt/integrationSearch-mapper.xml | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml index 6592ccb4..ccbf4751 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml @@ -347,13 +347,14 @@ SELECT C.CRDN_ID , P.RTPYR_NM , P.RTPYR_SE_CD , P.RTPYR_NO - , P.ADDR - , P.DTL_ADDR - , P.ZIP + , PA.ADDR + , PA.DTL_ADDR + , PA.ZIP FROM TB_CRDN C - INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) - LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) + INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) + LEFT OUTER JOIN TB_PAYER_ADDR PA ON (P.RTPYR_ID = PA.RTPYR_ID) WHERE C.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} diff --git a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml index 40a03190..32e59a1c 100644 --- a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml @@ -43,12 +43,12 @@ , P.RTPYR_EML /* 납부자 이메일 */ , P.RTPYR_STTS_CD /* 납부자 상태 코드 */ , (SELECT GET_CODE_NM('FIM014', P.RTPYR_STTS_CD) FROM DUAL) AS RTPYR_STTS_NM /* 납부자 상태 명 */ - , P.ADDR_SE_CD /* 주소 구분 코드 */ - , (SELECT GET_CODE_NM('FIM013', P.ADDR_SE_CD) FROM DUAL) AS ADDR_SE_NM /* 주소 구분 명 */ - , P.ZIP AS RTPYR_ZIP /* 납부자 우편번호 */ - , P.ADDR AS RTPYR_ADDR /* 납부자 주소 */ - , P.DTL_ADDR AS RTPYR_DTL_ADDR /* 납부자 상세 주소 */ - , CONCAT(P.ADDR, ' ', P.DTL_ADDR) AS RTPYR_FULL_ADDR /* 납부자 전체 주소 */ + , PA.ADDR_SE_CD /* 주소 구분 코드 */ + , (SELECT GET_CODE_NM('FIM013', PA.ADDR_SE_CD) FROM DUAL) AS ADDR_SE_NM /* 주소 구분 명 */ + , PA.ZIP AS RTPYR_ZIP /* 납부자 우편번호 */ + , PA.ADDR AS RTPYR_ADDR /* 납부자 주소 */ + , PA.DTL_ADDR AS RTPYR_DTL_ADDR /* 납부자 상세 주소 */ + , CONCAT(PA.ADDR, ' ', PA.DTL_ADDR) AS RTPYR_FULL_ADDR /* 납부자 전체 주소 */ , C.ETC_CN /* 기타 내용 */ , C.CRDN_STTS_CD /* 단속 상태 코드 */ , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */ @@ -161,6 +161,7 @@ LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = LEFT OUTER JOIN TB_ESB_INTERFACE EI ON (C.LINK_TBL_NM = 'TB_ESB_INTERFACE' AND C.LINK_ID = EI.INTERFACE_SEQ_N) /* 국민신문고 민원 연계 */ LEFT OUTER JOIN TB_SA_CVLCPT_DTL SCD ON (C.LINK_TBL_NM = 'TB_SA_CVLCPT_DTL' AND C.LINK_ID = SCD.DTL_ID) /* 새올 민원 연계 */ LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) /* 납부자 대장 */ +LEFT OUTER JOIN TB_PAYER_ADDR PA ON (P.RTPYR_ID = PA.RTPYR_ID) LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */ WHERE C.DEL_YN = 'N'