Commit 7914c84d by chenweitao

Merge branch 'working' into 'master'

更新dao层增加真实排名非空判断

See merge request !152
parents 10d5458a 844f58b8
......@@ -166,8 +166,8 @@ public class HotSearchCacheDAO {
highestRank = lastRank;
}
//判断真实最高排名
if ("微博热搜".equals(type)) {
if (nonNull(realLastRank) && realHighestRank < 0) {
if ("微博热搜".equals(type) && nonNull(realLastRank) && nonNull(realHighestRank)) {
if ( realHighestRank < 0) {
realHighestRank = realLastRank;
}
if (realLastRank > 0 && realHighestRank > 0 && realLastRank < realHighestRank) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment