Commit 621d4c31 by leiliangliang

更改时间解析方法调用

parent 952feb78
...@@ -30,7 +30,7 @@ public class HotSearchListDAO{ ...@@ -30,7 +30,7 @@ public class HotSearchListDAO{
public static MongoCollection mongoCollection; public static MongoCollection mongoCollection;
public HotSearchListDAO() { public HotSearchListDAO() {
String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd"); String time = TimeParse.dateFormatString(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.searchCollName + year + "_" + month;
......
...@@ -18,7 +18,7 @@ public class WeiboSuperTopicDAO{ ...@@ -18,7 +18,7 @@ public class WeiboSuperTopicDAO{
public static MongoCollection mongoCollection; public static MongoCollection mongoCollection;
public WeiboSuperTopicDAO() { public WeiboSuperTopicDAO() {
String time = TimeParse.dateFormartString(new Date(), "yyyy-MM-dd"); String time = TimeParse.dateFormatString(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.topicCollName + year + "_" + month; String collName = DBConfig.topicCollName + year + "_" + month;
......
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