From ca02e2998f54fd244db6678d7974578e4e572f08 Mon Sep 17 00:00:00 2001
From: gengby <858962040@qq.com>
Date: Tue, 29 Nov 2022 15:38:04 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
acs/nladmin-system/pom.xml | 16 ++-
.../nl/acs/device/rest/DeviceController.java | 10 ++
.../nl/acs/device/service/DeviceService.java | 9 ++
.../service/impl/DeviceServiceImpl.java | 46 +++++++
acs/nladmin-ui/src/api/acs/device/device.js | 10 +-
.../src/views/acs/device/UploadDialog.vue | 116 ++++++++++++++++++
acs/nladmin-ui/src/views/acs/device/index.vue | 20 ++-
7 files changed, 223 insertions(+), 4 deletions(-)
create mode 100644 acs/nladmin-ui/src/views/acs/device/UploadDialog.vue
diff --git a/acs/nladmin-system/pom.xml b/acs/nladmin-system/pom.xml
index 207ff624f..4349d76c0 100644
--- a/acs/nladmin-system/pom.xml
+++ b/acs/nladmin-system/pom.xml
@@ -45,7 +45,21 @@
commons-io
2.8.0
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
org.openscada.jinterop
org.openscada.jinterop.core
diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device/rest/DeviceController.java b/acs/nladmin-system/src/main/java/org/nl/acs/device/rest/DeviceController.java
index cbc8786da..f20f944c1 100644
--- a/acs/nladmin-system/src/main/java/org/nl/acs/device/rest/DeviceController.java
+++ b/acs/nladmin-system/src/main/java/org/nl/acs/device/rest/DeviceController.java
@@ -21,7 +21,9 @@ import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
@@ -382,4 +384,12 @@ public class DeviceController {
deviceService.downDeviceDBloadFX5UCSV(deviceService.queryDeviceProtocol(whereJson), response);
}
+ @PostMapping("/excelImport")
+ @Log("excel导入")
+ @ApiOperation("excel导入")
+ public ResponseEntity