eight
2024-09-20 e2efe712d2dc6593a03f71c6213f63a04437c3e7
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')")