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
320bd7e7
Commit
320bd7e7
authored
Apr 26, 2020
by
zhiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理热搜由于历史有热搜且最高排名为-1(2019-03-14之前历史数据没有热搜排名),问题导致的热搜最高排名计算错误的问题处理
parent
f5589b9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
+1
-1
No files found.
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
View file @
320bd7e7
...
@@ -79,7 +79,7 @@ public class HotSearchCacheDAO {
...
@@ -79,7 +79,7 @@ public class HotSearchCacheDAO {
highestCount
=
lastCount
;
highestCount
=
lastCount
;
}
}
//判断最高排名
//判断最高排名
if
(
lastRank
<
highestRank
)
{
if
(
lastRank
<
highestRank
||
highestRank
==
-
1
)
{
highestRank
=
lastRank
;
highestRank
=
lastRank
;
}
}
//计算热搜时长
//计算热搜时长
...
...
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