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 ac0e9846..3d98d4f7 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn01-mapper.xml @@ -107,7 +107,7 @@ SELECT C.CRDN_ID , C.DEL_DT , C.DEL_RSN FROM TB_CRDN C -INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) +INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_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) @@ -162,7 +162,7 @@ SELECT C.CRDN_ID , C.VHRNO , C.CRDN_PLC FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') 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' @@ -219,7 +219,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.CRDN_ID = CC.CRDN_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') 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} @@ -283,7 +283,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.CRDN_ID = CC.CRDN_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -299,7 +299,7 @@ SELECT C.CRDN_ID , C.LINK_TBL_NM , C.LINK_ID FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -310,7 +310,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.CRDN_ID = CC.CRDN_ID AND CC.DEL_YN = 'N') + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) WHERE C.DEL_YN = 'N' AND C.CRDN_ID = #{crdnId} @@ -349,7 +349,7 @@ SELECT C.CRDN_ID , C.LINK_TBL_NM , C.LINK_ID FROM TB_CRDN C - INNER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID AND CC.DEL_YN = 'N') + INNER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') 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 b4a16456..13ff0260 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn06-mapper.xml @@ -197,7 +197,7 @@ SELECT C.CRDN_ID , C.DEL_DT , C.DEL_RSN FROM TB_CRDN C -LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) +LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_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) @@ -398,7 +398,7 @@ SELECT C.CRDN_ID , C.ATCH_FILE_CNT , C.CRDN_SN FROM TB_CRDN C - LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID) + LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_TBL_NM IN ('TB_ESB_INTERFACE','TB_SAEOL') AND C.LINK_ID = CC.CVLCPT_LINK_ID) LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID) WHERE C.DEL_YN = 'N' AND C.TASK_SE_CD = 'DPV'