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})