Commit bc015676 by leiliangliang

更改时间解析类方法调用

parent 621d4c31
......@@ -33,7 +33,7 @@ public class TopicTest {
String collectionName = "hot_search_list2020_0" + month;
MongoCollection mongoCollection = mongoDB.getCollection(collectionName);
MongoCollection mongoLocalCollection = mongoDBLocal.getCollection(collectionName);
Date date = TimeParse.stringFormartDate("2020-06-17 12:59:59");
Date date = TimeParse.stringFormatDate("2020-06-17 12:59:59");
Document query = new Document();
query.put("time", new Document("$gt", date));
long count = mongoCollection.countDocuments(query);
......@@ -85,7 +85,7 @@ public class TopicTest {
int pageCount = 10000;
int pages = (int)Math.ceil((double)count/(double)pageCount);
log.info("count====={},pages====={}",count, pages);
Date date = TimeParse.stringFormartDate("2020-03-12 18:00:00");
Date date = TimeParse.stringFormatDate("2020-03-12 18:00:00");
Map<String,Document> resultMap = new HashMap<>();
......
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