Commit 081642d3 authored by wangsong's avatar wangsong

add day increament

parent 99507600
...@@ -109,6 +109,7 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St ...@@ -109,6 +109,7 @@ public class AuthLogDao extends StaticCacheDimensionDocumentMongoDao<AuthLog, St
Set<String> days = new HashSet<>(); Set<String> days = new HashSet<>();
while (calendar.before(nextDay)){ while (calendar.before(nextDay)){
days.add(DateUtils.dateToString(calendar.getTime(), "yyyy-MM-dd")); days.add(DateUtils.dateToString(calendar.getTime(), "yyyy-MM-dd"));
calendar.add(Calendar.DATE, 1);
} }
return new ArrayList<>(days); return new ArrayList<>(days);
} }
......
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