From ce53fed9ba3082664c816a29d024f950f8712cf9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 5 Mar 2024 13:14:52 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20JOIN=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java | 2 +- src/main/java/cokr/xit/fims/sprt/service/bean/MediaBean.java | 2 +- src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml | 3 ++- .../sql/mapper/fims/sprt/integrationSearch-mapper.xml | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java index 6f81e82e..0a76ff0d 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java @@ -221,7 +221,7 @@ public class Cvlc01Controller extends ApplicationController { if(linkTblNm.equals("TB_ESB_INTERFACE")) { fileQuery.setInfoType("010"); - } else if(linkTblNm.equals("TB_SAEOL")) { + } else if(linkTblNm.equals("TB_SA_CVLCPT_DTL")) { fileQuery.setInfoType("020"); } else { throw new RuntimeException("한글 파일 출력 중 오류가 발생하였습니다."); diff --git a/src/main/java/cokr/xit/fims/sprt/service/bean/MediaBean.java b/src/main/java/cokr/xit/fims/sprt/service/bean/MediaBean.java index 83e718c9..7eecb5e2 100644 --- a/src/main/java/cokr/xit/fims/sprt/service/bean/MediaBean.java +++ b/src/main/java/cokr/xit/fims/sprt/service/bean/MediaBean.java @@ -46,7 +46,7 @@ public class MediaBean extends AbstractComponent { if(linkTblNm.equals("TB_ESB_INTERFACE")) { fileQuery.setInfoType("010"); - } else if(linkTblNm.equals("TB_SAEOL")) { + } else if(linkTblNm.equals("TB_SA_CVLCPT_DTL")) { fileQuery.setInfoType("020"); } else { throw new RuntimeException("파일 조회 중 오류가 발생하였습니다."); 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 471476ec..937e307c 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml @@ -567,7 +567,8 @@ SELECT CC.CVLCPT_LINK_ID /* 민원 연계 ID */ , U.NSTT_CD AS CVLCPT_PRCS_NSTT_CD /* 민원 처리 기관 코드 */ , EI.PETI_ANC_CODE_V /* 민원 기관코드 */ FROM TB_CRDN_CVLCPT CC - INNER JOIN TB_ESB_INTERFACE EI ON (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_N) + LEFT OUTER JOIN TB_ESB_INTERFACE EI ON (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_N) + LEFT OUTER JOIN TB_SA_CVLCPT_DTL SCD ON (CC.CVLCPT_LINK_ID = SCD.DTL_ID) LEFT OUTER JOIN TB_USER U ON (CC.CVLCPT_PRCS_PIC = U.USER_ID) LEFT OUTER JOIN TB_SGG S ON (U.NSTT_CD = S.INST_CD) WHERE CC.CVLCPT_LINK_ID = #{cvlcptLinkId} 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 f2437c7a..1ce457b4 100644 --- a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml @@ -156,7 +156,8 @@ 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 (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_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_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') /* 수납 대장 */