From 3b3a2815feec0d2f436749ef450bb1a6eb4f12ca Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期二, 09 十二月 2025 14:28:01 +0800
Subject: [PATCH] 粮情检测提交
---
fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
index cdbe480..c6c9507 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/FileService.java
@@ -178,6 +178,38 @@
}
/**
+ * 鑾峰彇涓存椂璺緞
+ * @param companyId
+ * @return
+ */
+ public String getTempFilePath(String companyId) {
+
+ String basePath = FrameworkConfig.getProfile() + "TEMP/";
+ if (org.apache.commons.lang3.StringUtils.isNotEmpty(companyId)) {
+ basePath += companyId + "/";
+ }
+ File file = new File(basePath);
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ return basePath;
+ }
+
+ /**
+ * 鑾峰彇妯℃澘璺緞
+ * @return
+ */
+ public String getConfPath() {
+
+ String basePath = FrameworkConfig.getProfile() + "CONF/";
+ File file = new File(basePath);
+ if (!file.exists()) {
+ file.mkdirs();
+ }
+ return basePath;
+ }
+
+ /**
* 鍘嬬缉鍥剧墖
*
* @param filePath 鍘嬬缉鍓嶈矾寰�
@@ -201,4 +233,6 @@
ImageIO.write(compressedImage, "jpg", new File(outputPath));
}
+
+
}
--
Gitblit v1.9.3