| | |
| | | @GetMapping("/get-room-by-ip") |
| | | @Operation(summary = "获得诊室和诊疗床") |
| | | @PermitAll |
| | | public CommonResult<RoomProfileRespVO> getRoomByIP(HttpServletRequest request) { |
| | | public CommonResult<RoomProfileRespVO> getRoomByIP(HttpServletRequest request, @RequestParam(value = "roomId", required = false) Long roomId) { |
| | | String reqIp = ServletUtil.getClientIP(request); |
| | | RoomProfile roomProfile = roomService.getRoomByIP(reqIp); |
| | | RoomProfile roomProfile = roomService.getRoomByIP(reqIp, roomId); |
| | | return success(BeanUtils.toBean(roomProfile, RoomProfileRespVO.class)); |
| | | } |
| | | |