From 97834ce60827831a864ebe37e585f8a921352669 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 13 十一月 2025 19:11:06 +0800
Subject: [PATCH] 文件名修改
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/api/doctor/DoctorApiImpl.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/api/doctor/DoctorApiImpl.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/api/doctor/DoctorApiImpl.java
index e7ed3fd..bfd0245 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/api/doctor/DoctorApiImpl.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/api/doctor/DoctorApiImpl.java
@@ -7,6 +7,7 @@
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
+import java.util.List;
@Service
public class DoctorApiImpl implements DoctorApi {
@@ -16,13 +17,14 @@
@Override
public ErrorCode bedDoctorOff(Long userId, String userName) {
- RoomDO roomDO = queueService.getDocRoomInfo(userId);
+ List<RoomDO> roomDOList = queueService.getDocRoomInfo(userId);
// 鏈叆搴�, 璺宠繃
- if (null == roomDO) {
+ if (roomDOList.isEmpty()) {
return GlobalErrorCodeConstants.SUCCESS;
}
- return queueService.bedDoctorOff(roomDO.getRoomId(), roomDO.getBedNo(), userId, userName);
+ roomDOList.forEach( bedItem -> queueService.startBedDoctorOff(bedItem.getRoomId(), bedItem.getBedNo(), userId, userName));
+ return GlobalErrorCodeConstants.SUCCESS;
}
}
--
Gitblit v1.9.3