Showing
1 changed file
with
1 additions
and
1 deletions
@@ -423,8 +423,8 @@ public class InBoxServiceImpl implements IInBoxService { | @@ -423,8 +423,8 @@ public class InBoxServiceImpl implements IInBoxService { | ||
423 | if(CollectionUtils.isNotEmpty(inBoxes)){ | 423 | if(CollectionUtils.isNotEmpty(inBoxes)){ |
424 | result.put("lastMessage", inBoxes.get(0).getContent()); | 424 | result.put("lastMessage", inBoxes.get(0).getContent()); |
425 | result.put("createTime", inBoxes.get(0).getCreateTime()); | 425 | result.put("createTime", inBoxes.get(0).getCreateTime()); |
426 | + redisTemplate.setEx(inboxKey, inBoxes.get(0), CacheEnum.USERS_INBOX_VO_LAST_INFO.getCacheTime()); | ||
426 | } | 427 | } |
427 | - redisTemplate.setEx(inboxKey, inBoxes.get(0), CacheEnum.USERS_INBOX_VO_LAST_INFO.getCacheTime()); | ||
428 | } else { | 428 | } else { |
429 | result.put("lastMessage", inbox.getContent()); | 429 | result.put("lastMessage", inbox.getContent()); |
430 | result.put("createTime", inbox.getCreateTime()); | 430 | result.put("createTime", inbox.getCreateTime()); |
-
Please register or login to post a comment