|
|
@@ -336,11 +336,11 @@ public class StudentReportRecordController {
|
|
|
|
|
|
Map<String, List<StudentReportRecordStatisticsListVo>> deptMap = dataList.stream().filter(x -> x.getReportTime() != null && x.getDeptName() != null).collect(Collectors.groupingBy(StudentReportRecordStatisticsListVo::getDeptName));
|
|
|
List<ItemCountVo> deptList = new ArrayList<>();
|
|
|
- for (String majorName : deptMap.keySet()) {
|
|
|
- majorList.add(
|
|
|
+ for (String deptName : deptMap.keySet()) {
|
|
|
+ deptList.add(
|
|
|
new ItemCountVo(){{
|
|
|
- setItem(majorName);
|
|
|
- setCount(majorMap.get(majorName).size());
|
|
|
+ setItem(deptName);
|
|
|
+ setCount(deptMap.get(deptName).size());
|
|
|
}}
|
|
|
);
|
|
|
}
|