| | |
| | | package cn.lihu.jh.module.ecg.controller.admin.call; |
| | | |
| | | import cn.hutool.extra.servlet.ServletUtil; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.annotation.security.PermitAll; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | |
| | |
| | | } |
| | | |
| | | @GetMapping("/next") |
| | | @Operation(summary = "获得下一个叫号") |
| | | @Operation(summary = "大屏..获得下一个叫号") |
| | | @PermitAll |
| | | public CommonResult<CallRespVO> nextCall() { |
| | | CallDO call = callService.getNextCall(); |
| | | return success(BeanUtils.toBean(call, CallRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | @GetMapping("/next-install") |
| | | @Operation(summary = "诊间屏..获得下一个叫号") |
| | | @PermitAll |
| | | public CommonResult<CallRespVO> nextInstallCall(HttpServletRequest request) { |
| | | String reqIp = ServletUtil.getClientIP(request); |
| | | |
| | | CallDO call = callService.getNextInstallCall(reqIp); |
| | | return success(BeanUtils.toBean(call, CallRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | |