eight
2024-09-04 a47e5cd452a405463c03d1d8c4f97884123a46b2
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/BedOpenCallable.java
@@ -1,6 +1,8 @@
package cn.lihu.jh.module.ecg.service.queue;
import cn.lihu.jh.framework.common.exception.ErrorCode;
import cn.lihu.jh.framework.common.exception.enums.GlobalErrorCodeConstants;
import java.util.concurrent.Callable;
public class BedOpenCallable implements Callable<ErrorCode> {
@@ -18,7 +20,13 @@
    }
    public ErrorCode call() throws Exception {
        return queueService.bedOpen(roomId, bedNo);
        ErrorCode ec = queueService.bedOpen(roomId, bedNo);
        if (GlobalErrorCodeConstants.SUCCESS.equals(ec)) {
            queueService.hurryup();
        }
        queueService.monitorInfo();
        return ec;
    }
}