| | |
| | | }); |
| | | |
| | | 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; |
| | | } |
| | | |