| | |
| | | if (cache == null) { |
| | | return new LinkedList<OtcOnlineChatMessage>(); |
| | | } |
| | | List<OtcOnlineChatMessage> result = new ArrayList<OtcOnlineChatMessage>(cache); |
| | | return cache; |
| | | /*List<OtcOnlineChatMessage> result = new ArrayList<OtcOnlineChatMessage>(cache); |
| | | int start = cacheIndex(messageId, result); |
| | | // start = start == 0 ? start : start + 1;// 空消息则表示首页,消息索引的后一条为起始 |
| | | int end = start + pageSize; |
| | |
| | | // result.addAll(cache); |
| | | List<OtcOnlineChatMessage> list = result.subList(start, end); |
| | | |
| | | return list; |
| | | return list;*/ |
| | | } |
| | | |
| | | public List<OtcOnlineChatMessage> cacheGetList(String messageId, int pageSize, String orderNo, String clicentType) { |
| | |
| | | for (OtcOnlineChatMessage m : list) { |
| | | ids.add(m.getUuid().toString()); |
| | | } |
| | | tipService.deleteTip(ids); |
| | | if (!ids.isEmpty()) { |
| | | tipService.deleteTip(ids); |
| | | } |
| | | } |
| | | |
| | | public void updateMessageUser(OtcMessageUser messageUser) { |