From 4b278300e8b3b1faabd5d080990cd3124f68612c Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 26 十一月 2024 13:09:28 +0800 Subject: [PATCH] 会取下一个时段的序号 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java | 61 ++++++++++++++++++++---------- 1 files changed, 40 insertions(+), 21 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java index 4d3db85..660ea09 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java @@ -10,6 +10,7 @@ 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.room.RoomDO; /** * 鎺掗槦 Service 鎺ュ彛 @@ -18,7 +19,7 @@ */ public interface QueueService { - void setQueueReadyMax(Integer max); + void initCheckType(); void startBiz(); void closeBiz(); @@ -48,8 +49,11 @@ /** * */ - void startHurryUp(); + void startHurryUpOneBed(Long roomId, String bedNo); + void startHurryUpOneCheckType(Integer checkType); + void startBedReload(); + void startResetRoom(Boolean needCloseBed); MonitorInfoVO getMonitorInfo(); ErrorCode startBedOpen(Long roomId, String roomName, String bedNo); @@ -59,16 +63,8 @@ ErrorCode startBedDoctorOn(Long roomId, String bedNo, Long docId, String docName); ErrorCode startBedDoctorOff(Long roomId, String bedNo, Long docId, String docName); ErrorCode startNextPatient(Long roomId, String bedNo); + ErrorCode startNextInstallPatient(Long roomId, String bedNo); - ErrorCode bedOpen(Long roomId, String roomName, 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); - ErrorCode nextPatient(Long roomId, String bedNo); - - ErrorCode bedReload(); CommonResult<RoomRespVO> getRoom(Long roomId, String bedNo, Long docId); /** @@ -93,29 +89,52 @@ */ void queue(QueueSaveReqVO queueSaveReqVO); + List<QueueDO> selectBookSeqNumByAppointIdList(List<Long> appointIdList); /** - * 鎶婂尰鐢熷�欒瘖鐨勯槦鍒楀婊� - */ - void hurryup(); - - /** - * 鍖荤敓鍙笅涓�浣嶆偅鑰� + * 甯歌妫�鏌� 鍖荤敓鍙笅涓�浣嶆偅鑰� */ void finishNextPatient(Long roomId, String bedNo); /** - * 鍖荤敓鐪嬪畬鎮h�� + * 棰嗙敤 鍖荤敓鍙笅涓�浣嶆偅鑰� + */ + void finishReceiveNextPatient(Long roomId, String bedNo); + + /** + * 瑁呮満 鍖荤敓鍙笅涓�浣嶆偅鑰� + */ + void finishInstallNextPatient(Long roomId, String bedNo); + + /** + * 甯歌杩囧彿銆侀鐢ㄨ繃鍙� */ void passNextPatient(Long roomId, String bedNo); - List<QueueDO> getDoctorQueueByStatus(Long roomId, String bedNo, List<Byte> statusList); + /** + * 瑁呮満杩囧彿 + */ + void passInstallNextPatient(Long roomId, String bedNo); + + List<QueueDO> getBedQueueByStatus(Long roomId, String bedNo, List<Integer> statusList); + + List<QueueDO> getRoomQueueByStatus(Long roomId, List<Integer> statusList); PatientStatisticVO getPatientStatistic(Long roomId, String bedNo); - Integer recallPatient(Long roomId, String bedNo, String patId); + PatientStatisticVO getBedDevReadyStatistic(Long roomId, String bedNo); + + PatientStatisticVO getBedDevInstallStatistic(Long roomId, String bedNo); + + Integer recallPatient(Long roomId, String bedNo, String patId, Integer checkType); + + Integer recallInstallPatient(Long roomId, String bedNo, String patId, Integer checkType, Long roomId_operator, String bedNo_operator); Integer patientJump(String patId, Byte jumped ); - void monitorInfo(); + RoomDO getDocRoomInfo(Long docId); + + List<QueueDO> getToBeCheckedPatient(Long roomId, String bedNo); + + List<QueueDO> getToBeInstalledPatient(Long roomId, String bedNo); } -- Gitblit v1.9.3