...
|
...
|
@@ -418,7 +418,7 @@ public class InBoxServiceImpl implements IInBoxService { |
|
|
RedisKeyBuilder inboxKey = CacheEnum.USERS_INBOX_VO_LAST_INFO.generateKey(uid);
|
|
|
InBox inbox = redisTemplate.get(inboxKey, InBox.class);
|
|
|
if (null == inbox) {
|
|
|
List<InBox> inBoxes = inBoxDao.selectInboxs(getTableName(uid), null, uid, 0, 1); //查询最新一条未读消息
|
|
|
List<InBox> inBoxes = inBoxDao.selectInboxsEx(getTableName(uid), uid); //查询最新一条未读消息
|
|
|
if(CollectionUtils.isNotEmpty(inBoxes)){
|
|
|
result.put("lastMessage", inBoxes.get(0).getContent());
|
|
|
result.put("createTime", inBoxes.get(0).getCreateTime());
|
...
|
...
|
|