From 9ba4c7b31a554bc628ae59a2eeb1320cb10a2aaa Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 10 Aug 2023 09:47:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=20JOIN=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/crdn/crdn01-mapper.xml | 14 +++++++------- .../sql/mapper/fims/crdn/crdn06-mapper.xml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml index 56c5b322..5455733c 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml @@ -109,7 +109,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_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) -INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_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_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID) LEFT OUTER JOIN TB_LEVY L ON (C.LEVY_ID = L.LEVY_ID) WHERE C.DEL_YN = 'N' @@ -163,7 +163,7 @@ SELECT C.CRDN_ID , C.VHRNO , C.CRDN_PLC FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.TASK_SE_CD = #{taskSeCd} AND C.CRDN_STTS_CD = '01' @@ -220,7 +220,7 @@ SELECT C.CRDN_ID , LE.LEVY_EXCL_RSN_CD , C.ETC_CN FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_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_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID) WHERE C.DEL_YN = 'N' AND C.TASK_SE_CD = #{taskSeCd} @@ -284,7 +284,7 @@ SELECT C.CRDN_ID , CC.CVLCPT_APLY_CN , CC.CVLCPT_APLY_SE_CD FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -300,7 +300,7 @@ SELECT C.CRDN_ID , C.LINK_NM , C.LINK_ID FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -311,7 +311,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.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -351,7 +351,7 @@ SELECT C.CRDN_ID , P.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.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_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) WHERE C.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml index ee57d932..99251e4d 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml @@ -199,7 +199,7 @@ SELECT C.CRDN_ID FROM TB_CRDN C INNRT JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) -LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_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) LEFT OUTER JOIN TB_LEVY L ON (C.LEVY_ID = L.LEVY_ID) WHERE C.DEL_YN = 'N' @@ -403,7 +403,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_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID) - LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) + LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.TASK_SE_CD = 'DPV' AND CA.PARKNG_PSBLTY_RSLT_CD = '0'