| | |
| | | if("TEMPLATE".equals(pathTag)) return getTemplateFilePath(); |
| | | if("QUANTITY".equals(pathTag)) return getQuantityPath(); |
| | | if("WORD".equals(pathTag)) return getWordPath(); |
| | | if("WEIGHTNAP".equals(pathTag)) return getWeightSnapPath(); |
| | | |
| | | return getCommonFilePath(); |
| | | } |
| | |
| | | * 获取事件文件路径 |
| | | * @return |
| | | */ |
| | | public String getWeightSnapPath() { |
| | | String basePath = FrameworkConfig.getProfile() + "WEIGHTNAP/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/"; |
| | | File file = new File(basePath); |
| | | if (!file.exists()) { |
| | | file.mkdirs(); |
| | | } |
| | | return basePath; |
| | | } |
| | | |
| | | /** |
| | | * 获取事件文件路径 |
| | | * @return |
| | | */ |
| | | public String getEventFilePath() { |
| | | String basePath = FrameworkConfig.getProfile() + "EVENT/" + DateFormatUtils.format(new Date(), "yyyyMM") + "/"; |
| | | File file = new File(basePath); |