Showing
1 changed file
with
3 additions
and
3 deletions
@@ -172,7 +172,7 @@ public class InBoxServiceImpl implements IInBoxService { | @@ -172,7 +172,7 @@ public class InBoxServiceImpl implements IInBoxService { | ||
172 | response.setSize(reqVO.getLimit()); | 172 | response.setSize(reqVO.getLimit()); |
173 | response.setTotal(total); | 173 | response.setTotal(total); |
174 | //查询结果存入缓存 | 174 | //查询结果存入缓存 |
175 | - setInboxByRedis(reqVO,inBoxes,total); | 175 | + setInboxByRedis(reqVO, voList, total); |
176 | return response; | 176 | return response; |
177 | } | 177 | } |
178 | 178 | ||
@@ -226,10 +226,10 @@ public class InBoxServiceImpl implements IInBoxService { | @@ -226,10 +226,10 @@ public class InBoxServiceImpl implements IInBoxService { | ||
226 | return voList; | 226 | return voList; |
227 | } | 227 | } |
228 | 228 | ||
229 | - private void setInboxByRedis(ListInboxReqVO reqVO, List<InBox> inBoxes, int total) { | 229 | + private void setInboxByRedis(ListInboxReqVO reqVO, List<InBoxVO> inBoxVos, int total) { |
230 | RedisKeyBuilder inboxKey = CacheEnum.USERS_INBOX_VO_LIST.generateKey(reqVO.getUid()); | 230 | RedisKeyBuilder inboxKey = CacheEnum.USERS_INBOX_VO_LIST.generateKey(reqVO.getUid()); |
231 | redisTemplate.put(inboxKey, CacheKeyHelper.getInboxRedisHashKey(reqVO.getType(),reqVO.getPage(),reqVO.getLimit()), | 231 | redisTemplate.put(inboxKey, CacheKeyHelper.getInboxRedisHashKey(reqVO.getType(),reqVO.getPage(),reqVO.getLimit()), |
232 | - inBoxes,CacheEnum.USERS_INBOX_VO_LIST.getCacheTime()); | 232 | + inBoxVos,CacheEnum.USERS_INBOX_VO_LIST.getCacheTime()); |
233 | RedisKeyBuilder inboxTotalKey = CacheEnum.USERS_INBOX_LIST_TOTAL.generateKey(reqVO.getUid(),reqVO.getType() == null ?"N":reqVO.getType()); | 233 | RedisKeyBuilder inboxTotalKey = CacheEnum.USERS_INBOX_LIST_TOTAL.generateKey(reqVO.getUid(),reqVO.getType() == null ?"N":reqVO.getType()); |
234 | redisTemplate.setEx(inboxTotalKey,total,CacheEnum.USERS_INBOX_LIST_TOTAL.getCacheTime()); | 234 | redisTemplate.setEx(inboxTotalKey,total,CacheEnum.USERS_INBOX_LIST_TOTAL.getCacheTime()); |
235 | } | 235 | } |
-
Please register or login to post a comment