From ac2d8b07677436979487061e5391016f1deed1a7 Mon Sep 17 00:00:00 2001
From: guyue <1721849008@qq.com>
Date: 星期二, 29 七月 2025 18:08:40 +0800
Subject: [PATCH] 修改重复次数统计

---
 src/main/java/com/linghu/service/impl/KeywordServiceImpl.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java b/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java
index 3c848df..21e800f 100644
--- a/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java
+++ b/src/main/java/com/linghu/service/impl/KeywordServiceImpl.java
@@ -39,10 +39,12 @@
             return ResponseResult.success();
         }
         List<KeywordStaticsVO> statics = this.getBaseMapper().statics(keywordId, questionId, keyword.getNum());
-        vo.setNowRecord(statics);
+        List<KeywordStaticsVO> top30 = statics.subList(0, Math.min(statics.size(), 30));
+        vo.setNowRecord(top30);
         if (keyword.getNum() > 1) {
             statics = this.getBaseMapper().statics(keywordId, questionId, 1);
-            vo.setBeforeRecord(statics);
+            top30 = statics.subList(0, Math.min(statics.size(), 30));
+            vo.setBeforeRecord(top30);
         }
         return ResponseResult.success(vo);
     }

--
Gitblit v1.7.1