From ea721d64947ace6c1479f16d3447adedeee57398 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 25 九月 2024 11:08:05 +0800
Subject: [PATCH] 调整上海嘉定纪委接口:增加指令上传2
---
src/main/java/com/fzzy/api/utils/FileUtils.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/fzzy/api/utils/FileUtils.java b/src/main/java/com/fzzy/api/utils/FileUtils.java
index 16e4605..b3b8ac2 100644
--- a/src/main/java/com/fzzy/api/utils/FileUtils.java
+++ b/src/main/java/com/fzzy/api/utils/FileUtils.java
@@ -110,4 +110,18 @@
}
return basePath;
}
+
+ public String getCommonFilePath(Date date) {
+ if (null == date)
+ date = new Date();
+
+ String basePath = configData.getImgPath() + "COMMON/"
+ + DateFormatUtils.format(date, "yyyyMM") + "/";
+
+ File file = new File(basePath);
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ return basePath;
+ }
}
--
Gitblit v1.9.3