package cn.lihu.jh.module.ecg.service.queue; import cn.lihu.jh.framework.common.exception.ErrorCode; import java.util.concurrent.Callable; public class BedOpenCallable implements Callable { QueueService queueService; private Long roomId; private String bedNo; public BedOpenCallable(QueueService queueService, Long roomId, String bedNo) { super(); this.roomId = roomId; this.bedNo = bedNo; this.queueService = queueService; } public ErrorCode call() throws Exception { return queueService.bedOpen(roomId, bedNo); } }