mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-22 18:29:51 +08:00
完善/user/courses接口 && fixed: 后台学员top10
This commit is contained in:
@@ -68,7 +68,7 @@ public class DashboardController {
|
||||
data.put("user_learn_yesterday", userLearnDurationStatsService.yesterdayTotal());
|
||||
|
||||
List<UserLearnDurationStats> userLearnTop10 = userLearnDurationStatsService.top10();
|
||||
Map<Integer, User> top10Users = userService.chunks(userLearnTop10.stream().map(UserLearnDurationStats::getUserId).toList(), new ArrayList<String>() {{
|
||||
Map<Integer, User> top10Users = userService.chunks(userLearnTop10.stream().map(UserLearnDurationStats::getUserId).toList(), new ArrayList<>() {{
|
||||
add("id");
|
||||
add("name");
|
||||
add("avatar");
|
||||
|
||||
Reference in New Issue
Block a user