Commit 9e168863 by zhiwei

处理明星超话采集存错数据库的问题

parent 320bd7e7
...@@ -21,7 +21,7 @@ public class WeiboSuperTopicDAO{ ...@@ -21,7 +21,7 @@ public class WeiboSuperTopicDAO{
String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd"); String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd");
String year = time.substring(0,4); String year = time.substring(0,4);
String month = time.substring(5,7); String month = time.substring(5,7);
String collName = DBConfig.searchCollName + year + "_" + month; String collName = DBConfig.topicCollName + year + "_" + month;
mongoCollection = mongoDatabase.getCollection(collName); mongoCollection = mongoDatabase.getCollection(collName);
//给数据表创建索引 //给数据表创建索引
......
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