From 86f687fe84d34d9291ed9e5c6ea45e04e11e3be2 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期日, 21 四月 2024 15:54:04 +0800
Subject: [PATCH] 国家统一编码-财务接口增加统一编码字段及页面调整

---
 src/main/java/com/fzzy/api/utils/FileUtils.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 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 df2a8e2..b3b8ac2 100644
--- a/src/main/java/com/fzzy/api/utils/FileUtils.java
+++ b/src/main/java/com/fzzy/api/utils/FileUtils.java
@@ -96,4 +96,32 @@
 
 		return basePath;
 	}
+
+	public String getSnapFilePath(Date date) {
+		if (null == date) {
+			date = new Date();
+		}
+
+		String basePath = configData.getImgPath() + "SNAP/"
+				+ DateFormatUtils.format(date, "yyyyMM") + "/";
+		File file = new File(basePath);
+		if (!file.exists()) {
+			file.mkdirs();
+		}
+		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