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 decea6cc..b8c13fd4 100644
--- a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml
@@ -25,7 +25,6 @@
, CC.CVLCPT_RCPT_NO
, CC.CVLCPT_RCPT_YMD
, CC.CVLCPT_LIST_NO
- , EI.CEL_NO_V
, C.VHRNO
, L.RPM_SZR_VHRNO
, (GET_CODE_NM('FIM009', CA.FFNLG_CARMDL_CD)) AS FFNLG_CARMDL_NM
@@ -77,6 +76,7 @@
, L.LEVY_ID
, L.INST_CD
, L.DEPT_CD
+ , L.SPCL_BIZ_CD
, L.FYR
, L.ACNTG_SE_CD
, L.TXITM_CD
@@ -85,18 +85,16 @@
, CONCAT(L.FYR, '-', L.LEVY_NO) AS GOJI_NO
, L.LEVY_SE_CD
, (GET_CODE_NM('FIM040', L.LEVY_SE_CD)) AS LEVY_SE_NM
+ , L.RDUCT_SE_CD
+ , (GET_CODE_NM('FIM046', L.RDUCT_SE_CD)) AS RDUCT_SE_NM
, L.LEVY_PCPTAX
, L.LEVY_ADAMT
- , L.INSPY_INT
- , L.PAY_MTHD_SE_CD
- , (GET_CODE_NM('FIM045', L.PAY_MTHD_SE_CD)) AS PAY_MTHD_SE_NM
- , L.RCVMT_YMD
, L.RCVMT_PCPTAX
, L.RCVMT_ADAMT
, L.RDCAMT_PCPTAX
, L.RDCAMT_ADAMT
, L.SUM_AMT
- , (L.LEVY_PCPTAX + L.LEVY_ADAMT) AS LEVY_AMT
+ , (L.LEVY_PCPTAX + L.LEVY_ADAMT) AS LEVY_AMT
, (L.RCVMT_PCPTAX + L.RCVMT_ADAMT) AS RCVMT_AMT
, (L.RDCAMT_PCPTAX + L.RDCAMT_ADAMT) AS REDUC_AMT
, GET_MINAP_AMT(C.CRDN_ID) AS MINAP_AMT
@@ -105,6 +103,9 @@
, L.DUDT_YMD
, L.DUDT_AFTR_YMD
, L.DUDT_AFTR_AMT
+ , L.RCVMT_YMD
+ , L.PAY_MTHD_SE_CD
+ , (GET_CODE_NM('FIM045', L.PAY_MTHD_SE_CD)) AS PAY_MTHD_SE_NM
, L.EPAYNO
, L.BANK_NM
, L.VR_ACTNO
@@ -112,37 +113,26 @@
, L.SZR_RMV_YMD
, V.TXITM_NM
, (CASE
- WHEN (R.RCVMT_ID IS NOT NULL) OR (C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88'))
+ WHEN C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88')
THEN 'Y'
ELSE 'N'
END) AS RCVMT_ETC_YN
, (CASE
- WHEN (R.RCVMT_ID IS NOT NULL) OR (C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88'))
+ WHEN C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88')
THEN
- CASE
- WHEN C.CRDN_STTS_CD IN ('88')
- THEN '법원이송'
- WHEN C.CRDN_STTS_CD IN ('71','72','73','74','75')
- THEN '수납'
- WHEN C.CRDN_STTS_CD IN ('76','77')
- THEN '결손'
- ELSE '기타'
+ CASE WHEN C.CRDN_STTS_CD IN ('88') THEN '법원이송'
+ WHEN C.CRDN_STTS_CD IN ('71','72','73','74','75') THEN '수납'
+ WHEN C.CRDN_STTS_CD IN ('76','77') THEN '결손'
+ ELSE '기타'
END
ELSE
- CASE
- WHEN C.CRDN_STTS_CD IN ('55')
- THEN '압류'
- WHEN C.CRDN_STTS_CD IN ('53','54')
- THEN '압류예정'
- WHEN C.CRDN_STTS_CD IN ('52')
- THEN '독촉'
- WHEN C.CRDN_STTS_CD IN ('51','61')
- THEN '부과'
- WHEN C.CRDN_STTS_CD IN ('41','42','43')
- THEN '자납부과'
- WHEN C.CRDN_STTS_CD IN ('31')
- THEN '의견진술접수'
- ELSE '단속'
+ CASE WHEN C.CRDN_STTS_CD IN ('55') THEN '압류'
+ WHEN C.CRDN_STTS_CD IN ('53','54') THEN '압류예정'
+ WHEN C.CRDN_STTS_CD IN ('52') THEN '독촉'
+ WHEN C.CRDN_STTS_CD IN ('51','61') THEN '부과'
+ WHEN C.CRDN_STTS_CD IN ('41','42','43') THEN '자납부과'
+ WHEN C.CRDN_STTS_CD IN ('31') THEN '의견진술접수'
+ ELSE '단속'
END
END) AS TAB_GROUP
, C.DEL_YN
@@ -156,17 +146,14 @@
, C.DLTR
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.DLTR) AS DLTR_NM
, C.DEL_RSN
- 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.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
-LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
-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 (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')
-LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N')
+ 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.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
+LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.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')
WHERE C.DEL_YN = 'N'