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; } + + }