| | |
| | | return path; |
| | | } |
| | | |
| | | /** |
| | | * 获取模板路径:所有模板统一放在TEMPLATE/目录下 |
| | | * @return |
| | | */ |
| | | public String getTemplateFilePath() { |
| | | String basePath = FrameworkConfig.getProfile() + "TEMPLATE/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * 获取word路径 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public String getWordPath(String deptId) { |
| | | if(StringUtils.isBlank(deptId)){ |
| | | deptId = "0000"; |
| | | } |
| | | String basePath = FrameworkConfig.getProfile() + deptId + "/WORD/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | } |