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
4f43664d
Commit
4f43664d
authored
Apr 24, 2022
by
chenweitao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'working' into 'master'
更改时间解析方法调用 See merge request
!186
parents
0f550f15
621d4c31
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 @
4f43664d
...
@@ -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 @
4f43664d
...
@@ -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