| | |
| | | { |
| | | queueService.finishNextPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> queueDOList = queueService.getToBeCheckedPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getCheckRelatedPatient(roomId, bedNo); |
| | | |
| | | // 过滤出 就诊中的,准备叫号 |
| | | QueueDO onStageItem = queueDOList.stream().filter(item -> |
| | |
| | | { |
| | | queueService.finishReceiveNextPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> queueDOList = queueService.getToBeCheckedPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getCheckRelatedPatient(roomId, bedNo); |
| | | |
| | | // 过滤出 就诊中的,准备叫号 |
| | | QueueDO onStageItem = queueDOList.stream().filter(item -> |
| | |
| | | { |
| | | queueService.finishInstallNextPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> queueDOList = queueService.getToBeInstalledPatient(roomId, bedNo); // 待安装的患者 |
| | | List<QueueDO> queueDOList = queueService.getInstallRelatedPatient(roomId, bedNo); // 待安装的患者 |
| | | |
| | | List<QueueDO> installingQueueDOList = queueDOList.stream().filter(queueDO -> |
| | | queueDO.getStatus() == QueueStatusEnum.INSTALLING.getStatus() && queueDO.getAffinityItem() == 0 |
| | |
| | | { |
| | | queueService.passNextPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> queueDOList = queueService.getToBeCheckedPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getCheckRelatedPatient(roomId, bedNo); |
| | | |
| | | // 过滤出 就诊中的,准备叫号 |
| | | QueueDO onStageItem = queueDOList.stream().filter(item -> Objects.equals(item.getStatus(), QueueStatusEnum.ONSTAGE.getStatus())).findFirst().orElse(null); |
| | |
| | | { |
| | | queueService.passInstallNextPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> queueDOList = queueService.getToBeInstalledPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getInstallRelatedPatient(roomId, bedNo); |
| | | |
| | | List<QueueDO> installingQueueDOList = queueDOList.stream().filter(queueDO -> queueDO.getStatus() == QueueStatusEnum.INSTALLING.getStatus()).toList(); |
| | | // 过滤出 [安装中] 的,准备叫号 该工位应该 最多只有一个 [安装中] |
| | |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo) |
| | | { |
| | | List<QueueDO> queueDOList = queueService.getToBeCheckedPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getCheckRelatedPatient(roomId, bedNo); |
| | | return success(BeanUtils.toBean(queueDOList, QueueRespVO.class)); |
| | | } |
| | | |
| | |
| | | @RequestParam("roomId") Long roomId, |
| | | @RequestParam("bedNo") String bedNo) |
| | | { |
| | | List<QueueDO> queueDOList = queueService.getToBeInstalledPatient(roomId, bedNo); |
| | | List<QueueDO> queueDOList = queueService.getInstallRelatedPatient(roomId, bedNo); |
| | | return success(BeanUtils.toBean(queueDOList, QueueRespVO.class)); |
| | | } |
| | | |