eight
2024-08-28 cce9d33e6c03ab48fb22c62fe5de3d1e902c598f
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/queueService.java
@@ -1,10 +1,12 @@
package cn.lihu.jh.module.ecg.service.queue;
import cn.lihu.jh.framework.common.exception.ErrorCode;
import cn.lihu.jh.framework.common.pojo.CommonResult;
import cn.lihu.jh.module.ecg.controller.admin.queue.vo.*;
import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomRespVO;
import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueDO;
import cn.lihu.jh.framework.common.pojo.PageResult;
import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueStatisticDO;
import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomStatisticsDO;
import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomResVO;
import javax.validation.Valid;
import java.util.List;
@@ -15,6 +17,10 @@
 * @author 芋道源码
 */
public interface QueueService {
    void setQueueReadyMax(Integer max);
    void startBiz();
    void closeBiz();
    /**
     * 创建排队
@@ -39,6 +45,23 @@
    void deletequeue(Integer id);
    /**
     *
     */
    ErrorCode startBedOpen(Long roomId, String bedNo);
    ErrorCode startBedClose(Long roomId, String bedNo);
    ErrorCode startBedDoctorPause(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode startBedDoctorResume(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode startBedDoctorOn(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode startBedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedOpen(Long roomId, String bedNo);
    ErrorCode bedClose(Long roomId, String bedNo);
    ErrorCode bedDoctorPause(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorResume(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorOn(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    CommonResult<RoomRespVO> getRoom(Long roomId, String bedNo, Long docId);
    /**
     * 获得排队
     *
     * @param id 编号
@@ -54,23 +77,11 @@
     */
    PageResult<QueueDO> getqueuePage(QueuePageReqVO pageReqVO);
    List<QueueStatisticDO> queueStatistics(List<Byte> statusList);
    /**
     * 患者排队
     * @param queueSaveReqVO
     */
    void queue(QueueSaveReqVO queueSaveReqVO);
    /**
     *
     */
    void initQueue();
    /**
     * 开诊前一刻,对 就诊准备的 人员 重新排序
     */
    void reorderQueue();
    /**
     * 把医生候诊的队列塞满
@@ -88,4 +99,10 @@
    void passNextPatient(Long roomId, String bedNo);
    List<QueueDO> getDoctorQueueByStatus(Long roomId, String bedNo, List<Byte> statusList);
    PatientStatisticVO getPatientStatistic(Long roomId, String bedNo);
    Integer recallPatient(Long roomId, String bedNo, String patId);
    Integer patientJump(String patId, Byte jumped );
}