From 7041b344f9cdbc4c68a4d8b49167b6f72bc3a4d9 Mon Sep 17 00:00:00 2001 From: JoJH Date: Fri, 1 Nov 2024 14:26:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=AC=EB=9F=BC=EB=AA=85=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EC=86=8C?= =?UTF-8?q?=EC=8A=A4=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/fims/cvlc/crdnCvlcpt-mapper.xml | 27 +++-- .../sql/mapper/fims/excl/crdnReReg-mapper.xml | 4 +- .../sql/mapper/fims/nxrp/nisA01-mapper.xml | 4 +- .../sql/mapper/fims/sndb/sndng-mapper.xml | 6 +- .../fims/sprt/integrationSearch-mapper.xml | 6 +- .../sql/mapper/fims/sprt/totalInfo-mapper.xml | 104 +++++++++--------- 6 files changed, 75 insertions(+), 76 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 923fa4f8..2c8c2089 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml @@ -76,8 +76,7 @@ SELECT C.CRDN_ID , C.CRDN_REG_SE_CD , GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) AS CRDN_REG_SE_NM , C.CRDN_INPT_SE_CD - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM , C.RTPYR_ID , C.CRDN_YMD , C.CRDN_TM @@ -125,7 +124,7 @@ SELECT C.CRDN_ID , CA.FFNLG_CARMDL_CD , CA.PRK_PSBLTY_RSLT_CD , CA.VLTN_NMTM - , CA.OVTM_YN + , CA.OVTM_YN , CC.CVLCPT_LINK_ID , CC.DSTRBNC_YN , CC.CVLCPT_RCPT_YMD @@ -161,7 +160,7 @@ SELECT C.CRDN_ID FROM TB_CRDN C INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID) -INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) +INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_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_LEVY L ON (C.CRDN_ID = L.CRDN_ID) WHERE C.DEL_YN = 'N' @@ -247,7 +246,7 @@ SELECT C.CRDN_ID , C.VHRNO , C.CRDN_PLC FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.SGG_CD = #{sggCd} AND C.TASK_SE_CD = #{taskSeCd} @@ -313,10 +312,10 @@ SELECT C.CRDN_ID , CC.CVLCPT_PRCS_PRNMNT_DT , CC.CVLCPT_APLY_CN , CC.CVLCPT_APLY_SE_CD - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -337,8 +336,8 @@ SELECT C.CRDN_ID , C.VHCL_NM , C.VHCL_COLR , C.VIN - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID , CA.CRDN_SE_CD , CA.DTL_CRDN_PLC , CA.CRDN_SPAREA_CD @@ -361,7 +360,7 @@ SELECT C.CRDN_ID , PA.DTL_ADDR 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) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_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 (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN) WHERE C.DEL_YN = 'N' @@ -444,7 +443,7 @@ SELECT C.CRDN_ID END) AS COPY_EXIST_YN , CC.CVLCPT_PRCS_CD FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_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') WHERE C.DEL_YN = 'N' AND C.SGG_CD = #{sggCd} @@ -511,7 +510,7 @@ SELECT C.CRDN_ID , CC.CVLCPT_APLY_CN , CC.CVLCPT_PRCS_RSLT_CN FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -534,7 +533,7 @@ SELECT C.CRDN_ID , CC.CVLCPT_PRCS_RSLT_CN , C.LINK_TBL_NM FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.CRDN_ID IN (#{crdnId}) AND C.DEL_YN = 'N' AND C.CRDN_STTS_CD IN ('21','81','83') diff --git a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml index a46cf6b5..a0f196ae 100644 --- a/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml +++ b/src/main/resources/sql/mapper/fims/excl/crdnReReg-mapper.xml @@ -253,8 +253,8 @@ , C.CRDN_REG_SE_CD , C.CRDN_INPT_SE_CD , C.CVLCPT_LINK_YN - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID , C.RTPYR_ID , C.CRDN_YMD , C.CRDN_TM diff --git a/src/main/resources/sql/mapper/fims/nxrp/nisA01-mapper.xml b/src/main/resources/sql/mapper/fims/nxrp/nisA01-mapper.xml index bcbd1b22..904a148f 100644 --- a/src/main/resources/sql/mapper/fims/nxrp/nisA01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/nxrp/nisA01-mapper.xml @@ -525,8 +525,8 @@ , C.CRDN_REG_SE_CD , C.CRDN_INPT_SE_CD , C.CVLCPT_LINK_YN - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID , C.RTPYR_ID , C.CRDN_YMD , C.CRDN_TM diff --git a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml index eb39a129..d81ec3f3 100644 --- a/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sndb/sndng-mapper.xml @@ -273,7 +273,7 @@ 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_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID 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') @@ -499,7 +499,7 @@ 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 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_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID 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) @@ -885,7 +885,7 @@ 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_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID 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') 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 f43fea12..3a01054d 100644 --- a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml @@ -16,8 +16,8 @@ , CA.CRDN_SE_CD , (GET_CODE_NM('FIM002', CA.CRDN_SE_CD)) AS CRDN_SE_NM , C.CVLCPT_LINK_YN - , C.LINK_TBL_NM - , C.LINK_ID + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID , C.CRDN_YMD , C.CRDN_TM , CONCAT(C.CRDN_YMD, C.CRDN_TM) AS CRDN_YMD_TM @@ -149,7 +149,7 @@ 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_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_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) diff --git a/src/main/resources/sql/mapper/fims/sprt/totalInfo-mapper.xml b/src/main/resources/sql/mapper/fims/sprt/totalInfo-mapper.xml index 227bd0f4..8bf778fb 100644 --- a/src/main/resources/sql/mapper/fims/sprt/totalInfo-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/totalInfo-mapper.xml @@ -8,13 +8,13 @@ ============================ --> - SELECT C.CRDN_ID - , C.SGG_CD - , C.TASK_SE_CD - , C.RTPYR_ID + SELECT C.CRDN_ID + , C.SGG_CD + , C.TASK_SE_CD + , C.RTPYR_ID , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM - , C.VHRNO - , C.CRDN_STTS_CD + , C.VHRNO + , C.CRDN_STTS_CD , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM , C.CRDN_STTS_CHG_DT , (CONCAT(L.FYR, '-', L.LEVY_NO)) AS GOJI_NO @@ -28,53 +28,53 @@ - SELECT C.CRDN_ID - , C.SGG_CD - , C.TASK_SE_CD + SELECT C.CRDN_ID + , C.SGG_CD + , C.TASK_SE_CD , (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM - , C.CRDN_REG_SE_CD + , C.CRDN_REG_SE_CD , (SELECT GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) FROM DUAL) AS CRDN_REG_SE_NM - , C.CRDN_INPT_SE_CD + , C.CRDN_INPT_SE_CD , (SELECT GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) FROM DUAL) AS CRDN_INPT_SE_NM - , C.CVLCPT_LINK_YN - , C.LINK_TBL_NM - , C.LINK_ID - , C.CRDN_YMD - , C.CRDN_TM + , C.CVLCPT_LINK_YN + , C.CVLCPT_LINK_TBL_NM + , C.CVLCPT_LINK_ID + , C.CRDN_YMD + , C.CRDN_TM , (CONCAT(C.CRDN_YMD, C.CRDN_TM)) AS CRDN_YMD_TM - , C.VHRNO - , C.CRDN_STDG_NM - , C.CRDN_ROAD_NM - , C.CRDN_PLC - , C.VLTN_ID - , C.GPS_X - , C.GPS_Y - , C.ATCH_FILE_CNT - , C.VIN - , C.VHCL_NM - , C.VHCL_COLR - , C.FFNLG_CRDN_AMT - , C.FFNLG_RDCRT - , C.FFNLG_AMT - , C.ADVNTCE_BGNG_YMD - , C.ADVNTCE_DUDT_YMD - , C.ADVNTCE_AMT - , C.OPNN_SBMSN_YN - , C.ETC_CN - , C.CRDN_STTS_CD + , C.VHRNO + , C.CRDN_STDG_NM + , C.CRDN_ROAD_NM + , C.CRDN_PLC + , C.VLTN_ID + , C.GPS_X + , C.GPS_Y + , C.ATCH_FILE_CNT + , C.VIN + , C.VHCL_NM + , C.VHCL_COLR + , C.FFNLG_CRDN_AMT + , C.FFNLG_RDCRT + , C.FFNLG_AMT + , C.ADVNTCE_BGNG_YMD + , C.ADVNTCE_DUDT_YMD + , C.ADVNTCE_AMT + , C.OPNN_SBMSN_YN + , C.ETC_CN + , C.CRDN_STTS_CD , (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM - , C.CRDN_STTS_CHG_DT - , C.BFR_CRDN_ID - , C.DEL_YN - , C.REG_DT - , C.RGTR + , C.CRDN_STTS_CHG_DT + , C.BFR_CRDN_ID + , C.DEL_YN + , C.REG_DT + , C.RGTR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.RGTR) AS RGTR_NM - , C.MDFCN_DT - , C.MDFR + , C.MDFCN_DT + , C.MDFR , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM - , C.DEL_DT - , C.DLTR - , C.DEL_RSN + , C.DEL_DT + , C.DLTR + , C.DEL_RSN , (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.DLTR) AS DLTR_NM , CA.CRDN_SE_CD , (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM @@ -147,12 +147,12 @@ , (L.RCVMT_PCPTAX + L.RCVMT_ADAMT) AS RCVMT_AMT , (L.RDAMT_PCPTAX + L.RDAMT_ADAMT) AS RDAMT_AMT 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_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_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_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_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_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID AND CC.DEL_YN = 'N') + LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')