Commit 1a752c42 authored by 喻春霖's avatar 喻春霖

fixed

parent 25004aa3
...@@ -298,7 +298,8 @@ public class LogStatisticsController { ...@@ -298,7 +298,8 @@ public class LogStatisticsController {
List<String> schoolNames = authLogService.distinct("logUserInfo.schoolName", param); List<String> schoolNames = authLogService.distinct("logUserInfo.schoolName", param);
List<StatItem> result = new ArrayList<>(); List<StatItem> result = new ArrayList<>();
if (CollectionUtils.isNotEmpty(schoolNames)){ if (CollectionUtils.isNotEmpty(schoolNames)){
schoolNames.forEach(name -> { for (String name : schoolNames) {
param.put("logUserInfo.schoolName",name); param.put("logUserInfo.schoolName",name);
long count = authLogService.count(param); long count = authLogService.count(param);
...@@ -306,7 +307,7 @@ public class LogStatisticsController { ...@@ -306,7 +307,7 @@ public class LogStatisticsController {
item.setCount(count); item.setCount(count);
item.setName(name); item.setName(name);
result.add(item); result.add(item);
}); }
} }
result.sort(Comparator.comparing(StatItem::getCount).reversed()); result.sort(Comparator.comparing(StatItem::getCount).reversed());
......
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