eight
2024-12-12 2bc90e242eceb83d9aa80d48ea9f991c0f9b99c6
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/callingscreen/CallingScreenServiceImpl.java
@@ -39,8 +39,6 @@
    BigScreenConfig bigScreenConfig;
    Map<Integer, List<CheckTypeDO>> mapDisplayColName = null;
    Map<Integer, Integer> mapCheckTypeVsDisplayColumn = null;
    Integer waitingFrom = 0;
@@ -54,13 +52,12 @@
    @Override
    public Map<Integer, List<String>> getDisplayColInfo() {
        if (null == mapDisplayColName) {
            CheckTypePageReqVO checkTypePageReqVO = new CheckTypePageReqVO();
            checkTypePageReqVO.setPageSize(-1);
            PageResult<CheckTypeDO> pageResult = checkTypeMapper.selectPage(checkTypePageReqVO);
            mapDisplayColName = pageResult.getList().stream().collect(Collectors.groupingBy(CheckTypeDO::getCallingColumn));
            mapCheckTypeVsDisplayColumn = pageResult.getList().stream().collect(Collectors.toMap(CheckTypeDO::getValue, item -> item.getCallingColumn()));
        }
        CheckTypePageReqVO checkTypePageReqVO = new CheckTypePageReqVO();
        checkTypePageReqVO.setPageSize(-1);
        checkTypePageReqVO.setCallingColumn(-1); // 列号 -1 的不显示
        PageResult<CheckTypeDO> pageResult = checkTypeMapper.selectPageForCallingScreen(checkTypePageReqVO);
        Map<Integer, List<CheckTypeDO>> mapDisplayColName = pageResult.getList().stream().collect(Collectors.groupingBy(CheckTypeDO::getCallingColumn));
        mapCheckTypeVsDisplayColumn = pageResult.getList().stream().collect(Collectors.toMap(CheckTypeDO::getValue, item -> item.getCallingColumn()));
        Map<Integer, List<String>> _map = new HashMap<>();
        mapDisplayColName.keySet().forEach(key -> {
@@ -99,7 +96,17 @@
        });
        mapDisplayColQueue.values().stream().forEach(mapSoltQueue -> mapSoltQueue.values().stream().forEach(
                slotQueueList -> slotQueueList.sort((o1, o2) -> o1.getSeqNum() - o2.getSeqNum())));
                slotQueueList -> slotQueueList.sort((o1, o2) -> {
                    if (null == o1.getSeqNum() && null == o2.getSeqNum()) {
                        return o1.getBookTimeslot() - o2.getBookTimeslot();
                    } else if (null != o1.getSeqNum() && null != o2.getSeqNum()) {
                        return o1.getSeqNum() - o2.getSeqNum();
                    } else if (null == o1.getSeqNum()) {
                        return 1;
                    } else {  //这里 必定 null == o2.getSeqNum()
                        return -1;
                    }
                })));
        return mapDisplayColQueue;
    }