| | |
| | | } |
| | | |
| | | public ErrorCode call() throws Exception { |
| | | return queueService.bedClose(roomId, bedNo); |
| | | ErrorCode ec = queueService.bedClose(roomId, bedNo); |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | | } |
| | |
| | | queueService.hurryup(); |
| | | } |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public ErrorCode call() throws Exception { |
| | | return queueService.bedDoctorOff(roomId, bedNo, docId, docName); |
| | | ErrorCode ec = queueService.bedDoctorOff(roomId, bedNo, docId, docName); |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | public ErrorCode call() throws Exception { |
| | | return queueService.bedDoctorOn(roomId, bedNo, docId, docName); |
| | | ErrorCode ec = queueService.bedDoctorOn(roomId, bedNo, docId, docName); |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | public ErrorCode call() throws Exception { |
| | | return queueService.bedDoctorPause(roomId, bedNo, docId, docName); |
| | | ErrorCode ec = queueService.bedDoctorPause(roomId, bedNo, docId, docName); |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | | } |
| | |
| | | queueService.hurryup(); |
| | | } |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | |
| | | queueService.hurryup(); |
| | | } |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public ErrorCode call() throws Exception { |
| | | return queueService.bedReload(); |
| | | ErrorCode ec = queueService.bedReload(); |
| | | |
| | | queueService.monitorInfo(); |
| | | return ec; |
| | | } |
| | | |
| | | } |
| | |
| | | Integer recallPatient(Long roomId, String bedNo, String patId); |
| | | |
| | | Integer patientJump(String patId, Byte jumped ); |
| | | |
| | | void monitorInfo(); |
| | | } |
| | |
| | | if (0 == openingFlag.get()) |
| | | return; |
| | | |
| | | // TODO |
| | | log.info("map " + mapBedVsQueue.size() + " priority " + priorityQueue.size()); |
| | | if (mapBedVsQueue.size() != priorityQueue.size()) { |
| | | log.error("map " + mapBedVsQueue.size() + " priority " + priorityQueue.size()); |
| | | } |
| | | |
| | | // 处理 过号-回来 的人 |
| | | for (BedQueueBO bedQueueBO : mapBedVsQueue.values()) { |
| | | while (bedQueueBO.queueNum.get() < bedQueueBO.maxQueueNum) { |
| | |
| | | return updateNum; |
| | | } |
| | | |
| | | @Override |
| | | public void monitorInfo() { |
| | | log.info("map " + mapBedVsQueue.size() + " priority " + priorityQueue.size() |
| | | + " opening " + openingFlag.get()); |
| | | } |
| | | |
| | | private void startHurryUp() { |
| | | singleThreadExecutor.execute( () -> { |
| | | hurryup(); |