From 495bc0cb863eb8b568cb1365673a8c490b868cae Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 14 Sep 2023 12:06:06 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/cvlc/service/bean/CrdnCvlcptServiceBean.java | 11 +---------- 1 file changed, 1 insertion(+), 10 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 f3324075..20b2f9a8 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 @@ -129,13 +129,11 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv SimpleDateFormat ymdHypenFormat = new SimpleDateFormat("yyyy-MM-dd"); try { - System.out.println("서식파일 파일객체 로드"); + InputStream baseFormatIS = new ClassPathResource(baseFormatFilePath).getInputStream(); - System.out.println("서식파일 hwp파일객체 로드"); HWPFile baseFormatFile = HWPReader.fromInputStream(baseFormatIS); - System.out.println("누름틀 값 매핑"); ArrayList strings = new ArrayList(); strings.add(dataObject.string("CVLCPT_APLCNT_NM")); FieldFinder.setClickHereText(baseFormatFile, "신청자", strings); @@ -175,19 +173,15 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv String formatFileResultFolderPath = formatFileResultRootPath + File.separator + year + File.separator + month + File.separator + day; - System.out.println("결과파일 객체 생성"); File formatFileResultFolder = new File(formatFileResultFolderPath); - System.out.println("폴더생성"); if(!formatFileResultFolder.exists()) { formatFileResultFolder.mkdirs(); } String resultHwpPath = formatFileResultFolderPath + File.separator + currentTime + ".hwp"; - System.out.println("결과파일 쓰기"); HWPWriter.toFile(baseFormatFile, resultHwpPath); - System.out.println("결과파일 읽기"); HWPFile resultFile = HWPReader.fromFile(resultHwpPath); String linkTblNm = dataObject.string("LINK_TBL_NM"); @@ -199,7 +193,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv } else if(linkTblNm.equals("TB_SAEOL")) { fileQuery.setInfoType("020"); } else { - System.out.println("연계테이블명없음"); throw new RuntimeException("한글 파일 출력 중 오류가 발생하였습니다."); } @@ -242,8 +235,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv return result; } catch (Exception e) { - System.out.println("에러출력"); - System.out.println(e.toString()); throw new RuntimeException("한글 파일 출력 중 오류가 발생하였습니다."); }