From 2f939b4546b7f331e520f1b86b0fa988a1510f62 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 14 四月 2025 16:01:15 +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, 16 insertions(+), 3 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 b629f61..8a53348 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
@@ -58,7 +58,16 @@
         PageResult<CheckTypeDO> pageResult = checkTypeMapper.selectPageForCallingScreen(checkTypePageReqVO);
 
         // 鏄剧ず鍒� 鍖呭惈鐨勬鏌ョ被鍨嬪垪琛�
-        Map<Integer, List<CheckTypeDO>> mapDisplayColName = pageResult.getList().stream().collect(Collectors.groupingBy(CheckTypeDO::getCallingColumn));
+        Map<Integer, List<CheckTypeDO>> mapDisplayColName = pageResult.getList().stream().
+            collect(
+                Collectors.groupingBy(
+                    CheckTypeDO::getCallingColumn,
+                    Collectors.collectingAndThen(
+                        Collectors.toList(),
+                        list -> list.stream().sorted(Comparator.comparing(CheckTypeDO::getId)).toList()
+                    )
+                )
+            );
 
         // 妫�鏌ョ被鍨� 瀵瑰簲鐨勬樉绀哄垪
         mapCheckTypeVsDisplayColumn = pageResult.getList().stream().collect(Collectors.toMap(CheckTypeDO::getValue, item -> item.getCallingColumn()));
@@ -66,7 +75,8 @@
         // 鏄剧ず鍒� 瀵瑰簲鐨勬鏌ョ被鍨嬪悕鍒楄〃
         Map<Integer, List<String>> _map = new HashMap<>();
         mapDisplayColName.keySet().forEach(key -> {
-            _map.put(key, mapDisplayColName.get(key).stream().map(item->item.getName()+item.getSeqPrefix()).toList());
+            List<String> displayColNameList = mapDisplayColName.get(key).stream().map(item->item.getName()+item.getSeqPrefix()).toList();
+            _map.put(key, displayColNameList);
         });
         return _map;
     }
@@ -94,7 +104,7 @@
         queueStatusList.add(QueueStatusEnum.PASSED.getStatus());
         queueStatusList.add(QueueStatusEnum.PASSED_WAITING.getStatus());
         queueStatusList.add(QueueStatusEnum.AFFINITY.getStatus());
-        List<QueueDO> queueDOList = queueMapper.getQueueByStatus( queueStatusList );
+        List<QueueDO> queueDOList = queueMapper.getBigScreenQueueByStatus( queueStatusList );
         queueDOList.forEach(queueDO -> {
             List<QueueDO> columnQueueData = mapDisplayColQueue.get(mapCheckTypeVsDisplayColumn.get(queueDO.getBookCheckType()));
             columnQueueData.add( queueDO );
@@ -165,6 +175,9 @@
         return queueDOList;
     }
 
+    /**
+     * 璇婇棿灞� 瀹夎鎮h�呭垪琛�
+     */
     @Override
     public List<QueueDO> getRoomInstallRelatedPatient(String ip, Long roomId) {
         if (null == roomId) {

--
Gitblit v1.9.3