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
716c3dc3
Commit
716c3dc3
authored
Nov 24, 2021
by
leiliangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新DAO层
parent
20048d2d
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 @
716c3dc3
...
@@ -116,7 +116,7 @@ public class HotSearchCacheDAO {
...
@@ -116,7 +116,7 @@ public class HotSearchCacheDAO {
String
name
=
document
.
getString
(
"name"
);
String
name
=
document
.
getString
(
"name"
);
String
type
=
document
.
getString
(
"type"
);
String
type
=
document
.
getString
(
"type"
);
Integer
lastRank
=
document
.
getInteger
(
"rank"
)
!=
null
?
document
.
getInteger
(
"rank"
)
:
null
;
Integer
lastRank
=
document
.
getInteger
(
"rank"
)
!=
null
?
document
.
getInteger
(
"rank"
)
:
null
;
Integer
realLastRank
=
document
.
get
Integer
(
"realRank"
)
!=
null
?
document
.
getInteger
(
"realRank"
)
:
null
;
Integer
realLastRank
=
document
.
get
(
"realRank"
)
!=
null
?
document
.
getInteger
(
"realRank"
)
:
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
);
...
@@ -149,7 +149,7 @@ public class HotSearchCacheDAO {
...
@@ -149,7 +149,7 @@ public class HotSearchCacheDAO {
Document
nowDoc
=
(
Document
)
collection
.
find
(
query
).
first
();
Document
nowDoc
=
(
Document
)
collection
.
find
(
query
).
first
();
if
(
nonNull
(
nowDoc
))
{
if
(
nonNull
(
nowDoc
))
{
Integer
highestRank
=
nowDoc
.
getInteger
(
"highestRank"
);
Integer
highestRank
=
nowDoc
.
getInteger
(
"highestRank"
);
Integer
realHighestRank
=
nonNull
(
nowDoc
.
get
Integer
(
"realHighestRank"
))
?
nowDoc
.
getInteger
(
"realHighestRank"
)
:
null
;
Integer
realHighestRank
=
nonNull
(
nowDoc
.
get
(
"realHighestRank"
))
?
nowDoc
.
getInteger
(
"realHighestRank"
)
:
null
;
Long
highestCount
=
nonNull
(
nowDoc
.
get
(
"highestCount"
))
?
Long
.
valueOf
(
nowDoc
.
get
(
"highestCount"
).
toString
())
:
null
;
Long
highestCount
=
nonNull
(
nowDoc
.
get
(
"highestCount"
))
?
Long
.
valueOf
(
nowDoc
.
get
(
"highestCount"
).
toString
())
:
null
;
Integer
preRank
=
nowDoc
.
getInteger
(
"lastRank"
);
Integer
preRank
=
nowDoc
.
getInteger
(
"lastRank"
);
Long
preCount
=
nonNull
(
nowDoc
.
get
(
"lastCount"
))
?
Long
.
valueOf
(
nowDoc
.
get
(
"lastCount"
).
toString
())
:
null
;
Long
preCount
=
nonNull
(
nowDoc
.
get
(
"lastCount"
))
?
Long
.
valueOf
(
nowDoc
.
get
(
"lastCount"
).
toString
())
:
null
;
...
...
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