Commit 85617220 by chenweitao

评论量讨论量数据类型超限

parent 00b41a46
...@@ -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");
......
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