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
85617220
Commit
85617220
authored
May 27, 2021
by
chenweitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论量讨论量数据类型超限
parent
00b41a46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
+2
-2
No files found.
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
View file @
85617220
...
@@ -77,7 +77,7 @@ public class HotSearchCacheDAO {
...
@@ -77,7 +77,7 @@ public class HotSearchCacheDAO {
try
{
try
{
String
name
=
document
.
getString
(
"name"
);
String
name
=
document
.
getString
(
"name"
);
String
type
=
document
.
getString
(
"type"
);
String
type
=
document
.
getString
(
"type"
);
Long
lastRank
=
document
.
getLong
(
"rank"
)!=
null
?
document
.
getLong
(
"rank"
):
null
;
Integer
lastRank
=
document
.
getLong
(
"rank"
)!=
null
?
document
.
getInteger
(
"rank"
):
null
;
Long
lastCount
=
document
.
getLong
(
"count"
)!=
null
?
document
.
getLong
(
"count"
):
null
;
Long
lastCount
=
document
.
getLong
(
"count"
)!=
null
?
document
.
getLong
(
"count"
):
null
;
Date
startTime
=
document
.
getDate
(
"time"
);
Date
startTime
=
document
.
getDate
(
"time"
);
Date
endTime
=
getEndTime
(
type
,
startTime
);
Date
endTime
=
getEndTime
(
type
,
startTime
);
...
@@ -101,7 +101,7 @@ public class HotSearchCacheDAO {
...
@@ -101,7 +101,7 @@ public class HotSearchCacheDAO {
if
(
Objects
.
nonNull
(
lastRank
)
&&
lastRank
>
0
){
if
(
Objects
.
nonNull
(
lastRank
)
&&
lastRank
>
0
){
Document
nowDoc
=
(
Document
)
collection
.
find
(
query
).
first
();
Document
nowDoc
=
(
Document
)
collection
.
find
(
query
).
first
();
if
(
Objects
.
nonNull
(
nowDoc
))
{
if
(
Objects
.
nonNull
(
nowDoc
))
{
Long
highestRank
=
nowDoc
.
getLong
(
"highestRank"
);
Integer
highestRank
=
nowDoc
.
getInteger
(
"highestRank"
);
Long
highestCount
=
nowDoc
.
getLong
(
"highestCount"
);
Long
highestCount
=
nowDoc
.
getLong
(
"highestCount"
);
Integer
preRank
=
nowDoc
.
getInteger
(
"lastRank"
);
Integer
preRank
=
nowDoc
.
getInteger
(
"lastRank"
);
Long
preCount
=
nowDoc
.
getLong
(
"lastCount"
);
Long
preCount
=
nowDoc
.
getLong
(
"lastCount"
);
...
...
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