Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
searchhotcrawler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
searchhotcrawler
Commits
621d4c31
Commit
621d4c31
authored
Apr 24, 2022
by
leiliangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改时间解析方法调用
parent
952feb78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchListDAO.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/dao/WeiboSuperTopicDAO.java
+1
-1
No files found.
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchListDAO.java
View file @
621d4c31
...
@@ -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
.
dateForma
r
tString
(
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
;
...
...
src/main/java/com/zhiwei/searchhotcrawler/dao/WeiboSuperTopicDAO.java
View file @
621d4c31
...
@@ -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
.
dateForma
r
tString
(
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment