From db1ad1b67a55f005baea15a6d640df370a6c74a9 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期三, 09 四月 2025 08:39:04 +0800 Subject: [PATCH] 工位分流控制信息 设置逻辑调整 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/room/RoomServiceImpl.java | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/room/RoomServiceImpl.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/room/RoomServiceImpl.java index 68554a7..15f6542 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/room/RoomServiceImpl.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/room/RoomServiceImpl.java @@ -90,10 +90,14 @@ roomProfile.setRoomName(roomDO.getRoomName()); roomProfile.setBedNum( roomProfile.getBedNum() + 1); + // 0 妫�鏌� 1 棰嗙敤 2 瑁呮満 + // 璁$畻 璇婇棿灞忕被鍨� if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.NONE.getCallingScreenType()) { - if ( roomDO.getOpType() == 0 || roomDO.getOpType() == 1 ) { - roomProfile.setCallingScreenType( RoomCallingScreenEnum.CHECK_ONLY.getCallingScreenType()); + if ( roomDO.getOpType() == 0 ) { + roomProfile.setCallingScreenType(RoomCallingScreenEnum.CHECK_ONLY.getCallingScreenType()); + } else if ( roomDO.getOpType() == 1 ) { + roomProfile.setCallingScreenType( RoomCallingScreenEnum.RECEIVE_ONLY.getCallingScreenType()); } else if ( roomDO.getOpType() == 2 ) { roomProfile.setCallingScreenType( RoomCallingScreenEnum.INSTALL_ONLY.getCallingScreenType()); } @@ -101,15 +105,25 @@ if ( roomDO.getOpType() == 0 || roomDO.getOpType() == 1 ) { // do nothing } else if ( roomDO.getOpType() == 2 ) { - roomProfile.setCallingScreenType( RoomCallingScreenEnum.HYBRID.getCallingScreenType()); + roomProfile.setCallingScreenType( RoomCallingScreenEnum.CHECK_INSTALL.getCallingScreenType()); + } + } else if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.RECEIVE_ONLY.getCallingScreenType()) { + if ( roomDO.getOpType() == 0 || roomDO.getOpType() == 1 ) { + // do nothing + } else if ( roomDO.getOpType() == 2 ) { + roomProfile.setCallingScreenType( RoomCallingScreenEnum.RECEIVE_INSTALL.getCallingScreenType()); } } else if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.INSTALL_ONLY.getCallingScreenType()) { - if ( roomDO.getOpType() == 0 || roomDO.getOpType() == 1 ) { - roomProfile.setCallingScreenType( RoomCallingScreenEnum.HYBRID.getCallingScreenType()); + if ( roomDO.getOpType() == 0 ) { + roomProfile.setCallingScreenType( RoomCallingScreenEnum.CHECK_INSTALL.getCallingScreenType()); + } else if ( roomDO.getOpType() == 1 ) { + roomProfile.setCallingScreenType( RoomCallingScreenEnum.RECEIVE_INSTALL.getCallingScreenType()); } else if ( roomDO.getOpType() == 2 ) { // do nothing } - } else if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.HYBRID.getCallingScreenType()) { + } else if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.RECEIVE_INSTALL.getCallingScreenType()) { + // do nothing + } else if (roomProfile.getCallingScreenType() == RoomCallingScreenEnum.CHECK_INSTALL.getCallingScreenType()) { // do nothing } } @@ -127,7 +141,7 @@ List<BedStatusEnum> bedStatusEnumList = new ArrayList<BedStatusEnum>(); bedStatusEnumList.add(BedStatusEnum.OPENING); bedStatusEnumList.add(BedStatusEnum.DOCTOR_ON); - bedStatusEnumList.add(BedStatusEnum.PAUSE); + bedStatusEnumList.add(BedStatusEnum.DOCTOR_PAUSE); return roomMapper.simpleRoomList(bedStatusEnumList); } -- Gitblit v1.9.3