Commit a252c834 by chenweitao

修改热搜多条储存方式

parent 65547f90
...@@ -50,7 +50,9 @@ public class HotSearchListDAO{ ...@@ -50,7 +50,9 @@ public class HotSearchListDAO{
*/ */
public void addHotSearchList(List<Document> list){ public void addHotSearchList(List<Document> list){
try { try {
mongoCollection.insertMany(list); for (Document document : list) {
addHotSearch(document);
}
} catch (Exception e) { } catch (Exception e) {
log.error("存储数据时出错,错误为:{}", e); log.error("存储数据时出错,错误为:{}", e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment