| | |
| | | queueStatusList.clear(); |
| | | queueStatusList.add(QueueStatusEnum.INSTALLING.getStatus()); |
| | | List<QueueDO> installingQueueDOList = queueService.getBedQueueByStatus(roomId, bedNo, queueStatusList); |
| | | queueDOList.addAll( installingQueueDOList ); |
| | | queueDOList.addAll(0, installingQueueDOList ); |
| | | |
| | | // 过滤出 [安装中] 的,准备叫号 该工位应该 最多只有一个 [安装中] |
| | | if (installingQueueDOList.size() > 0) { |
| | |
| | | |
| | | queueStatusList.clear(); |
| | | queueStatusList.add(QueueStatusEnum.INSTALLING.getStatus()); |
| | | queueDOList.addAll( queueService.getBedQueueByStatus(roomId, bedNo, queueStatusList) ); |
| | | queueDOList.addAll(0, queueService.getBedQueueByStatus(roomId, bedNo, queueStatusList) ); |
| | | return success(BeanUtils.toBean(queueDOList, QueueRespVO.class)); |
| | | } |
| | | |
| | |
| | | return success(patientStatisticVO); |
| | | } |
| | | |
| | | @GetMapping("/get-dev-ready-statistic") |
| | | @Operation(summary = "设备领用统计") |
| | | @Parameter(name = "roomId", description = "诊室编号", required = true, example = "116") |
| | | @Parameter(name = "bedNo", description = "工位编号", required = true, example = "B2") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<PatientStatisticVO> getDevReadyStatistic( |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo) |
| | | { |
| | | PatientStatisticVO patientStatisticVO = queueService.getBedDevReadyStatistic(roomId, bedNo); |
| | | return success(patientStatisticVO); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/get-dev-install-statistic") |
| | | @Operation(summary = "设备装机统计") |
| | | @Parameter(name = "roomId", description = "诊室编号", required = true, example = "116") |
| | | @Parameter(name = "bedNo", description = "工位编号", required = true, example = "B2") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<PatientStatisticVO> getDevInstallStatistic( |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo) |
| | | { |
| | | PatientStatisticVO patientStatisticVO = queueService.getBedDevInstallStatistic(roomId, bedNo); |
| | | return success(patientStatisticVO); |
| | | } |
| | | |
| | | @GetMapping("/recall-patient") |
| | | @Operation(summary = "过号病人召回") |
| | | @Parameter(name = "roomId", description = "诊室编号", required = true, example = "116") |