From e2efe712d2dc6593a03f71c6213f63a04437c3e7 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 20 九月 2024 16:04:10 +0800
Subject: [PATCH] 显示设备详情
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java
index b1fa875..f06700f 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java
@@ -71,6 +71,15 @@
return success(BeanUtils.toBean(device, DeviceRespVO.class));
}
+ @GetMapping("/get-by-dev-id")
+ @Operation(summary = "鑾峰緱璁惧")
+ @Parameter(name = "devId", description = "缂栧彿", required = true, example = "1024")
+ @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
+ public CommonResult<DeviceRespVO> getDevice(@RequestParam("dev-id") String devId) {
+ DeviceDO device = deviceService.getDevice(devId);
+ return success(BeanUtils.toBean(device, DeviceRespVO.class));
+ }
+
@GetMapping("/page")
@Operation(summary = "鑾峰緱璁惧鍒嗛〉")
@PreAuthorize("@ss.hasPermission('ecg:device:query')")
--
Gitblit v1.9.3