Commit abfc58fc authored by wangsong's avatar wangsong

fix bson null problem

parent 863324f9
......@@ -219,10 +219,8 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St
if(item.containsKey("yearMonthDay")){
data.setYearMonthDay(item.getString("yearMonthDay").getValue());
}
if(item.containsKey("hour") ){
if(!item.isNull()){
data.setHour(item.getInt32("hour").getValue());
}
if(item.containsKey("hour") && !item.get("hour").isNull()){
data.setHour(item.getInt32("hour").getValue());
}
if(item.containsKey("count")){
double count = item.getInt32("count").getValue();
......
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