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
10d5458a
Commit
10d5458a
authored
Nov 24, 2021
by
chenweitao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'working' into 'master'
更新DAO层 See merge request
!151
parents
ae15e633
716c3dc3
Hide 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 @
10d5458a
...
...
@@ -116,7 +116,7 @@ public class HotSearchCacheDAO {
String
name
=
document
.
getString
(
"name"
);
String
type
=
document
.
getString
(
"type"
);
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
;
Date
startTime
=
document
.
getDate
(
"time"
);
Date
endTime
=
getEndTime
(
type
,
startTime
);
...
...
@@ -149,7 +149,7 @@ public class HotSearchCacheDAO {
Document
nowDoc
=
(
Document
)
collection
.
find
(
query
).
first
();
if
(
nonNull
(
nowDoc
))
{
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
;
Integer
preRank
=
nowDoc
.
getInteger
(
"lastRank"
);
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