From 5a5a17c159e8e375a5780de866afce4173ec4c1b Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期三, 12 六月 2024 13:53:03 +0800
Subject: [PATCH] 钻孔导入
---
javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/service/impl/HoleServiceImpl.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/service/impl/HoleServiceImpl.java b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/service/impl/HoleServiceImpl.java
index 1f14317..405098b 100644
--- a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/service/impl/HoleServiceImpl.java
+++ b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/service/impl/HoleServiceImpl.java
@@ -202,12 +202,14 @@
private String saveExcel(MultipartFile file) {
+ String fileSaveDir2 = Global.getProfile() + "\\template\\" ;
+
String filename = file.getOriginalFilename();
- File dir = new File(fileSaveDir);
+ File dir = new File(fileSaveDir2);
if (!dir.exists()) {
dir.mkdir();
}
- String addr = fileSaveDir + filename;
+ String addr = fileSaveDir2 + filename;
try {
File dest = new File(addr);
file.transferTo(dest);
--
Gitblit v1.9.1