From fc8492c1a1143ef2466c8dca219b82fc5bf6550c Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期六, 12 十月 2024 15:56:14 +0800
Subject: [PATCH] 队列状态 更新逻辑调整
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java
index 8815e4d..f73da77 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java
@@ -1,10 +1,8 @@
package cn.lihu.jh.module.ecg.service.callingscreen;
-import cn.lihu.jh.framework.common.exception.ErrorCode;
-import cn.lihu.jh.framework.common.exception.enums.GlobalErrorCodeConstants;
import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueDO;
import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomDO;
-import cn.lihu.jh.module.ecg.dal.mysql.queue.queueMapper;
+import cn.lihu.jh.module.ecg.dal.mysql.queue.QueueMapper;
import cn.lihu.jh.module.ecg.dal.mysql.room.RoomMapper;
import cn.lihu.jh.module.ecg.enums.QueueStatusEnum;
import lombok.extern.slf4j.Slf4j;
@@ -14,8 +12,6 @@
import javax.annotation.Resource;
import java.util.*;
-
-import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.PATIENT_NOT_EXISTS;
/**
* 鎺掗槦 Service 瀹炵幇绫�
@@ -28,7 +24,7 @@
public class CallingScreenServiceImpl implements CallingScreenService {
@Resource
- private queueMapper queueMapper;
+ private QueueMapper queueMapper;
@Resource
private RoomMapper roomMapper;
@@ -61,7 +57,7 @@
if (listWaiting.size() < bigScreenConfig.waitingSize) {
waitingFrom = 0;
} else {
- waitingFrom = listWaiting.getLast().getId();
+ waitingFrom = listWaiting.getLast().getId() + 1;
}
queueStatusList.clear();
@@ -97,15 +93,6 @@
Long roomId = optionalQueueDO.get().getRoomId();
List<QueueDO> queueDOList = queueMapper.getRoomQueueByStatus(roomId, statusList);
return queueDOList;
- }
-
- @Override
- public ErrorCode markCalled(String patientId) {
- Integer rowNum = queueMapper.markCalled(patientId);
- if (rowNum == 1)
- return GlobalErrorCodeConstants.SUCCESS;
-
- return PATIENT_NOT_EXISTS;
}
}
--
Gitblit v1.9.3