| | |
| | | |
| | | @GetMapping("/get-latest-rent") |
| | | @Operation(summary = "获取患者设备的最近租赁情况") |
| | | @Parameter(name = "pat-id", description = "患者编号", required = true, example = "1024") |
| | | @Parameter(name = "dev-id", description = "设备编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<DevRentRespVO> getLatestRent( |
| | | @RequestParam("pat-id") String patId, @RequestParam("dev-id") String devId) |
| | | public CommonResult<DevRentRespVO> getLatestRent( @RequestParam("dev-id") String devId ) |
| | | { |
| | | DevRentDO devRent = devRentService.getLatestRent(patId, devId); |
| | | DevRentDO devRent = devRentService.getLatestRent( devId ); |
| | | return success(BeanUtils.toBean(devRent, DevRentRespVO.class)); |
| | | } |
| | | } |