| @@ -73,6 +73,7 @@ public class WxCouponChannelController extends BaseController { | |||||
| String key = EnumCacheKey.C_INDEX_PAGE_LIST.getMessage() + wxCouponChannel.getTenantId() + "_" + pageNum + ":"; | String key = EnumCacheKey.C_INDEX_PAGE_LIST.getMessage() + wxCouponChannel.getTenantId() + "_" + pageNum + ":"; | ||||
| PageInfo<WxCouponChannelVo> page = RedisCacheUtils.getCacheObject(redisTemplate, key, PageInfo.class); | PageInfo<WxCouponChannelVo> page = RedisCacheUtils.getCacheObject(redisTemplate, key, PageInfo.class); | ||||
| logger.info("WxCouponChannelController.chache.get:{} page:{}",key,page); | |||||
| if (null == page ) { | if (null == page ) { | ||||
| page = wxCouponChannelService.newListPageVo(wxCouponChannel, pageNum, pageSize); | page = wxCouponChannelService.newListPageVo(wxCouponChannel, pageNum, pageSize); | ||||
| filterTimed(wxCouponChannel, page); | filterTimed(wxCouponChannel, page); | ||||
| @@ -153,6 +154,7 @@ public class WxCouponChannelController extends BaseController { | |||||
| } | } | ||||
| key = EnumCacheKey.MERCHANT_COUPON_PAGE_LIST.getMessage() + key + "_" + pageNum + ":"; | key = EnumCacheKey.MERCHANT_COUPON_PAGE_LIST.getMessage() + key + "_" + pageNum + ":"; | ||||
| PageInfo<WxCouponChannelVo> page = RedisCacheUtils.getCacheObject(redisTemplate, key, PageInfo.class); | PageInfo<WxCouponChannelVo> page = RedisCacheUtils.getCacheObject(redisTemplate, key, PageInfo.class); | ||||
| logger.info("WxCouponChannelController.chache.get:{} page:{}",key,page); | |||||
| if (null == page ) { | if (null == page ) { | ||||
| page = wxCouponChannelService.newListPageVo(wxCouponChannel, pageNum, pageSize); | page = wxCouponChannelService.newListPageVo(wxCouponChannel, pageNum, pageSize); | ||||
| filterTimed(wxCouponChannel, page); | filterTimed(wxCouponChannel, page); | ||||
| @@ -46,6 +46,7 @@ public class WxTopicController extends BaseController { | |||||
| String key = EnumCacheKey.TOPIC_ONE.getMessage() + wxTopic.getTenantId() + ":"; | String key = EnumCacheKey.TOPIC_ONE.getMessage() + wxTopic.getTenantId() + ":"; | ||||
| WxTopic show = RedisCacheUtils.getCacheObject(redisTemplate, key, WxTopic.class); | WxTopic show = RedisCacheUtils.getCacheObject(redisTemplate, key, WxTopic.class); | ||||
| logger.info("WxCouponChannelController.chache.get:{} show:{}",key,show); | |||||
| if (null == show ) { | if (null == show ) { | ||||
| show = wxTopicService.show(wxTopic); | show = wxTopicService.show(wxTopic); | ||||
| RedisCacheUtils.cache(redisTemplate, key, show, 100); | RedisCacheUtils.cache(redisTemplate, key, show, 100); | ||||
| @@ -63,6 +64,7 @@ public class WxTopicController extends BaseController { | |||||
| String key = EnumCacheKey.TOPIC_LIST.getMessage() + wxTopic.getTenantId() + ":"; | String key = EnumCacheKey.TOPIC_LIST.getMessage() + wxTopic.getTenantId() + ":"; | ||||
| List<WxTopic> topicList = RedisCacheUtils.getCacheObject(redisTemplate, key, List.class); | List<WxTopic> topicList = RedisCacheUtils.getCacheObject(redisTemplate, key, List.class); | ||||
| logger.info("WxTopicController.chache.get:{} topicList:{}",key,topicList); | |||||
| if (null == topicList ) { | if (null == topicList ) { | ||||
| topicList = wxTopicService.showList(wxTopic); | topicList = wxTopicService.showList(wxTopic); | ||||
| RedisCacheUtils.cache(redisTemplate, key, topicList, 100); | RedisCacheUtils.cache(redisTemplate, key, topicList, 100); | ||||