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("한글 파일 출력 중 오류가 발생하였습니다."); }