From c7ac1c3b75ba5233433a3d2e4d57371adf777e64 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 27 Jul 2023 17:08:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=EC=9B=90=EB=B3=B8=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0=20=ED=95=9C=EA=B8=80=ED=8C=8C=EC=9D=BC=20=EB=8B=A4?= =?UTF-8?q?=EC=9A=B4=EB=A1=9C=EB=93=9C=EC=8B=9C=20=EB=A3=A8=ED=8A=B8=20?= =?UTF-8?q?=ED=8F=B4=EB=8D=94=20=EC=83=9D=EC=84=B1=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/service/bean/Crdn01ServiceBean.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index 1ce6e94c..472cd0b2 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -103,7 +103,14 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic FieldFinder.setClickHereText(baseFormatFile, "민원내용", strings); String currentTime = ymdhmsFormat.format(new Date()); - String resultPath = "files" + File.separator + "result" + File.separator + currentTime + ".hwp"; + + String formatFileResultRootPath = "files" + File.separator + "result"; + File formatFileResultRootFolder = new File(formatFileResultRootPath); + if(!formatFileResultRootFolder.exists()) { + formatFileResultRootFolder.mkdirs(); + } + String resultPath = formatFileResultRootPath + File.separator + currentTime + ".hwp"; + HWPWriter.toFile(baseFormatFile, resultPath); HWPFile resultFile = HWPReader.fromFile(resultPath);