From 8faa1d379ed06d8913b096007f8a6e7fd248b4ea Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期三, 06 三月 2024 19:05:30 +0800
Subject: [PATCH] 优化上海接口,出入库信息绑定结算单号

---
 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