From 1a4db98920b3e5341e7e99c84116e27ea144c6dd Mon Sep 17 00:00:00 2001 From: leebj Date: Thu, 27 Jun 2024 16:39:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=20=ED=95=9C=EC=BB=B4?= =?UTF-8?q?=ED=95=9C=EA=B8=80=ED=8C=8C=EC=9D=BC=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/applib/Print.java | 26 +++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/applib/Print.java b/src/main/java/cokr/xit/applib/Print.java index 1202dc1..77a361d 100644 --- a/src/main/java/cokr/xit/applib/Print.java +++ b/src/main/java/cokr/xit/applib/Print.java @@ -6,6 +6,8 @@ import java.util.Date; import java.util.HashMap; import java.util.Map; +import org.egovframe.rte.fdl.string.EgovStringUtil; + import cokr.xit.foundation.UserInfo; public class Print { @@ -25,6 +27,11 @@ public class Print { */ protected UserInfo printRequestUserInfo; + /** + * 임시 파일 생성 경로 + */ + protected String tempPathConfig; + /** * 다중 파일 생성시 파일명 인덱스 */ @@ -73,6 +80,14 @@ public class Print { this.printRequestUserInfo = printRequestUserInfo; } + public String getTempPathConfig() { + return this.tempPathConfig; + } + + public void setTempPathConfig(String tempPathConfig) { + this.tempPathConfig = tempPathConfig; + } + public String getPrintRequestDt() { return this.printRequestDt; } @@ -115,7 +130,14 @@ public class Print { String year = currentTime.substring(0, 4); String month = currentTime.substring(4, 6); String day = currentTime.substring(6, 8); - String formatFileResultRootPath = "files" + File.separator + "temp" + File.separator + "print"; + + String DEFAULT = "files"+ File.separator; + String root = DEFAULT; + if(!EgovStringUtil.null2void(this.getTempPathConfig()).equals("")) { + root = this.getTempPathConfig(); + } + String formatFileResultRootPath = root + "temp" + File.separator + "print"; + String formatFileResultFolderPath = formatFileResultRootPath + File.separator + year + File.separator + month + File.separator + day; File formatFileResultFolder = new File(formatFileResultFolderPath); @@ -128,4 +150,6 @@ public class Print { return resultPath; } + + }