From f14d9737da8bbe94e82427f2d0e727fd15c88f2e Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 23 九月 2024 11:44:35 +0800 Subject: [PATCH] update --- 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