eight
2024-09-20 e2efe712d2dc6593a03f71c6213f63a04437c3e7
显示设备详情
已修改3个文件
22 ■■■■■ 文件已修改
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devmanage/DeviceController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devmanage/DeviceService.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devmanage/DeviceServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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')")
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devmanage/DeviceService.java
@@ -46,6 +46,14 @@
    DeviceDO getDevice(Integer id);
    /**
     * 获得设备
     *
     * @param devId 编号
     * @return 设备
     */
    DeviceDO getDevice(String devId);
    /**
     * 获得设备分页
     *
     * @param pageReqVO 分页查询
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/devmanage/DeviceServiceImpl.java
@@ -68,6 +68,11 @@
    }
    @Override
    public DeviceDO getDevice(String devId) {
        return deviceMapper.getDeviceByDevId(devId);
    }
    @Override
    public PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO) {
        return deviceMapper.selectPage(pageReqVO);
    }