From 51ec98113c6d49d0f7eec4e3c030e55e337e97db Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 26 五月 2025 15:47:16 +0800 Subject: [PATCH] 芯导软件(江苏)有限公司 delete --- cnas-server/src/main/java/com/yuanchu/mom/controller/DeviceController.java | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/cnas-server/src/main/java/com/yuanchu/mom/controller/DeviceController.java b/cnas-server/src/main/java/com/yuanchu/mom/controller/DeviceController.java index c1df04d..959a9a5 100644 --- a/cnas-server/src/main/java/com/yuanchu/mom/controller/DeviceController.java +++ b/cnas-server/src/main/java/com/yuanchu/mom/controller/DeviceController.java @@ -20,6 +20,7 @@ import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.io.File; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; @@ -150,10 +151,10 @@ } @ApiOperation(value = "閫氳繃璁惧缂栧彿鑾峰彇璁惧鍒楄〃") - @PostMapping("/selectDeviceByCode") + @GetMapping("/selectDeviceByCode") @ValueAuth - public Result selectDeviceByCode(String code) { - return Result.success(deviceService.selectDeviceByCode(code)); + public Result selectDeviceByCode(Integer id) { + return Result.success(deviceService.selectDeviceByCode(id)); } @ValueAuth @@ -216,4 +217,18 @@ return Result.success(deviceService.treeDevice(deviceName)); } -} \ No newline at end of file + @ApiOperation(value = "璁惧妗f瀵煎嚭") + @GetMapping("/exportDeviceFile") + @ValueAuth + public void exportDeviceFile(@RequestParam Integer deviceId, HttpServletResponse response) throws Exception { + deviceService.exportDeviceFile(deviceId,response); + } + + @ApiOperation(value = "浠櫒璁惧涓�瑙堣〃瀵煎嚭") + @GetMapping("/exportEquipmentDetails") + @ValueAuth + public void exportEquipmentDetails(HttpServletResponse response) throws Exception { + deviceService.exportEquipmentDetails(response); + } + +} -- Gitblit v1.9.3