| | |
| | | BeanUtils.toBean(list, QueueRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/opening-setting") |
| | | @Operation(summary = "开诊设置") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue:setting')") |
| | | public CommonResult<Integer> openingSetting() { |
| | | // 从DB同步工位的患者队列数据到 工位优先队列, 可能有新开工位 |
| | | queueService.initQueue(); |
| | | @GetMapping("/bed-control") |
| | | @Operation(summary = "工位控制") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue:bedcontrol')") |
| | | public CommonResult<Integer> bedControl( |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo, |
| | | @RequestParam("status") Integer status) |
| | | { |
| | | queueService.bedControl(roomId, bedNo, status); |
| | | return success(0); |
| | | } |
| | | |