|
@@ -363,7 +363,7 @@ public class StudentTryReadingReportController {
|
|
|
|
|
|
|
|
Map<String, List<StudentReportRecordPlanPageVo>> classMap = dataList.stream().filter(x -> x.getReportTime() != null)
|
|
Map<String, List<StudentReportRecordPlanPageVo>> classMap = dataList.stream().filter(x -> x.getReportTime() != null)
|
|
|
.collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassName));
|
|
.collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassName));
|
|
|
- Map<String, List<StudentReportRecordPlanPageVo>> classNotMap = dataList.stream().filter(x -> x.getReportTime() == null)
|
|
|
|
|
|
|
+ Map<String, List<StudentReportRecordPlanPageVo>> classNotMap = dataList.stream().filter(x -> x.getReportTime() == null && x.getClassName() != null)
|
|
|
.collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassName));
|
|
.collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassName));
|
|
|
List<StudentReportRecordItemVo> classList = new ArrayList<>();
|
|
List<StudentReportRecordItemVo> classList = new ArrayList<>();
|
|
|
for (String className : classMap.keySet()) {
|
|
for (String className : classMap.keySet()) {
|
|
@@ -380,7 +380,8 @@ public class StudentTryReadingReportController {
|
|
|
statisticsVo.setClassList(classList);
|
|
statisticsVo.setClassList(classList);
|
|
|
|
|
|
|
|
Map<String, List<StudentReportRecordPlanPageVo>> classTypeMap = dataList.stream().filter(x -> x.getReportTime() != null).collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassType));
|
|
Map<String, List<StudentReportRecordPlanPageVo>> classTypeMap = dataList.stream().filter(x -> x.getReportTime() != null).collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassType));
|
|
|
- Map<String, List<StudentReportRecordPlanPageVo>> classTypeNotMap = dataList.stream().filter(x -> x.getReportTime() == null).collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassType));
|
|
|
|
|
|
|
+ Map<String, List<StudentReportRecordPlanPageVo>> classTypeNotMap = dataList.stream().filter(x -> x.getReportTime() == null && x.getClassType() != null)
|
|
|
|
|
+ .collect(Collectors.groupingBy(StudentReportRecordPlanPageVo::getClassType));
|
|
|
List<StudentReportRecordItemVo> classTypeList = new ArrayList<>();
|
|
List<StudentReportRecordItemVo> classTypeList = new ArrayList<>();
|
|
|
for (String classType : classTypeMap.keySet()) {
|
|
for (String classType : classTypeMap.keySet()) {
|
|
|
classTypeList.add(
|
|
classTypeList.add(
|