From 647095a34d62db02533cf9c121436900b51c757c Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 15 十月 2024 15:07:13 +0800 Subject: [PATCH] update --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java | 18 ++---------------- 1 files changed, 2 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 fb405e7..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; @@ -57,7 +53,6 @@ if (listWaiting.size() < bigScreenConfig.waitingSize && waitingFrom != 0) { List<QueueDO> listWaiting_next = queueMapper.getPartialQueueByStatus( queueStatusList, 0, bigScreenConfig.waitingSize - listWaiting.size()); listWaiting.addAll(listWaiting_next); - waitingFrom = listWaiting.getLast().getId() + 1; } if (listWaiting.size() < bigScreenConfig.waitingSize) { waitingFrom = 0; @@ -98,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