|
@@ -93,13 +93,13 @@ public class ChannelAnalyseController {
|
|
|
|
|
|
//2.查看redis中是否存在有缓存
|
|
|
HashMap<String, Object> result = new HashMap<>();
|
|
|
-// HashMap<String,Object> wdCount = (HashMap<String,Object>) redisTemplate.boundHashOps(RedisContant.CHANNEL_ANALYSE_TAG_ANLYSE).get(md5);
|
|
|
-// if (wdCount != null) {
|
|
|
-// result.put("data",(List<TagAnalyse>) wdCount.get(page + ""));
|
|
|
-// result.put("pages",(int)wdCount.get("pages"));
|
|
|
-// result.put("total",(int)wdCount.get("total"));
|
|
|
-// return R.ok(result);
|
|
|
-// }
|
|
|
+ HashMap<String,Object> wdCount = (HashMap<String,Object>) redisTemplate.boundHashOps(RedisContant.CHANNEL_ANALYSE_TAG_ANLYSE).get(md5);
|
|
|
+ if (wdCount != null) {
|
|
|
+ result.put("data",(List<TagAnalyse>) wdCount.get(page + ""));
|
|
|
+ result.put("pages",(int)wdCount.get("pages"));
|
|
|
+ result.put("total",(int)wdCount.get("total"));
|
|
|
+ return R.ok(result);
|
|
|
+ }
|
|
|
HashMap<String, Object> hashMap = channelAnalyseService.tagAnalyse(channelMapAceeptVo);
|
|
|
|
|
|
//4.保存到redis中
|