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); }