| | |
| | | |
| | | public class BedDoctorResumeCallable implements Callable<ErrorCode> { |
| | | |
| | | QueueService queueService; |
| | | QueueServiceTxFunctions queueService; |
| | | private Long roomId; |
| | | private String bedNo; |
| | | private Long docId; |
| | | private String docName; |
| | | |
| | | public BedDoctorResumeCallable(QueueService queueService, Long roomId, String bedNo, Long docId, String docName) |
| | | public BedDoctorResumeCallable(QueueServiceTxFunctions queueService, Long roomId, String bedNo, Long docId, String docName) |
| | | { |
| | | super(); |
| | | this.queueService = queueService; |
| | |
| | | public ErrorCode call() throws Exception { |
| | | ErrorCode ec = queueService.bedDoctorResume(roomId, bedNo, docId, docName); |
| | | if (GlobalErrorCodeConstants.SUCCESS.equals(ec)) { |
| | | queueService.hurryup(); |
| | | queueService.hurryupOneBed(roomId, bedNo); |
| | | } |
| | | |
| | | queueService.monitorInfo(); |