| | |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<DevRentRespVO> getDevRent(@RequestParam("id") Long id) { |
| | | DevRentDO devRent = devRentService.getDevRent(id); |
| | | return CommonResult.success(BeanUtils.toBean(devRent, DevRentRespVO.class)); |
| | | |
| | | DevRentRespVO devRentRespVO = BeanUtils.toBean(devRent, DevRentRespVO.class); |
| | | |
| | | DeviceDO deviceDO = deviceService.getDevice( devRent.getDevId() ); |
| | | if (null != deviceDO) { |
| | | devRentRespVO.setCategory(deviceDO.getCategory()); |
| | | devRentRespVO.setBrand(deviceDO.getBrand()); |
| | | devRentRespVO.setModel(deviceDO.getModel()); |
| | | } |
| | | return CommonResult.success(devRentRespVO); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | |
| | | return CommonResult.success(devRentRespVO); |
| | | } |
| | | |
| | | @GetMapping("/get-dismantle-rent") |
| | | @GetMapping("/get-installed-rent") |
| | | @Operation(summary = "获取患者设备的最近租赁情况") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<DevRentRespVO> getLatestRent( @Valid DevRentSearchReqVO searchReqVO ) |
| | | public CommonResult<DevRentRespVO> getInstalledRent( @Valid DevRentSearchReqVO searchReqVO ) |
| | | { |
| | | DevRentDO devRent = devRentService.getInstalledOrCancelledRent( searchReqVO ); |
| | | if (null == devRent) { |