From 252bead9462d9740e5dac195c2273c01ae656f7d Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 5 Mar 2024 13:49:52 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/bean/CrdnCvlcptServiceBean.java | 21 ++++++++++++------- .../mapper/fims/cvlc/crdnCvlcpt-mapper.xml | 1 + 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java index 19045f9a..b53832dd 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java @@ -167,7 +167,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv 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("파일 조회 중 오류가 발생하였습니다."); @@ -215,10 +215,13 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv throw new RuntimeException("반송 처리 중 단속민원답변 수정에 실패하였습니다."); } - boolean result = crdnCvlcptMainBean.insertTransmitInfo(true, crdnInfo.string("CVLCPT_LINK_ID")); - if (!result) { - throw new RuntimeException("반송 처리 중 전송자료 등록에 실패하였습니다."); + if(crdnInfo.string("LINK_TBL_NM").equals("TB_ESB_INTERFACE")) { + boolean result = crdnCvlcptMainBean.insertTransmitInfo(true, crdnInfo.string("CVLCPT_LINK_ID")); + if (!result) { + throw new RuntimeException("반송 처리 중 전송자료 등록에 실패하였습니다."); + } } + } return saved ? "[S]" : "[F]"; @@ -367,10 +370,14 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv } if(processType.equals("answerExecute")) { - boolean result = crdnCvlcptMainBean.insertTransmitInfo(false, targetDataList.get(i).string("CVLCPT_LINK_ID")); - if (!result) { - throw new RuntimeException("민원 전송 상태 변경 중 전송자료 등록에 실패하였습니다."); + + if(targetDataList.get(i).string("LINK_TBL_NM").equals("TB_ESB_INTERFACE")) { + boolean result = crdnCvlcptMainBean.insertTransmitInfo(false, targetDataList.get(i).string("CVLCPT_LINK_ID")); + if (!result) { + 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 937e307c..4c993ccb 100644 --- a/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml +++ b/src/main/resources/sql/mapper/fims/cvlc/crdnCvlcpt-mapper.xml @@ -518,6 +518,7 @@ SELECT C.CRDN_ID , C.CRDN_STTS_CHG_DT , CC.CVLCPT_LINK_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) WHERE C.CRDN_ID IN (#{crdnId})