feat: dau sort logic

This commit is contained in:
tim
2025-07-14 21:55:41 +08:00
parent d0f84b70cc
commit dc238f1522
3 changed files with 10 additions and 2 deletions

View File

@@ -32,7 +32,10 @@ public class StatController {
LocalDate start = end.minusDays(days - 1L);
var data = userVisitService.countDauRange(start, end);
return data.entrySet().stream()
.map(e -> Map.of("date", e.getKey().toString(), "value", e.getValue()))
.map(e -> Map.<String,Object>of(
"date", e.getKey().toString(),
"value", e.getValue()
))
.toList();
}
}