|
@@ -233,10 +233,26 @@ public class StudentReportRecordController {
|
|
|
statisticsVo.setArrivedMaleCount(dataList.stream().filter(x -> x.getReportTime() != null && GenderDictionaryEnum.MALE.getCode().equals(x.getGender())).count());
|
|
|
statisticsVo.setArrivedFemaleCount(dataList.stream().filter(x -> x.getReportTime() != null && GenderDictionaryEnum.FEMALE.getCode().equals(x.getGender())).count());
|
|
|
|
|
|
- statisticsVo.setStayMaleCount(dataList.stream().filter(x -> GenderDictionaryEnum.MALE.getCode().equals(x.getGender()) && StudyStatusEnum.InResidence.getCode().equals(x.getStduyStatus())).count());
|
|
|
- statisticsVo.setStayFemaleCount(dataList.stream().filter(x -> GenderDictionaryEnum.FEMALE.getCode().equals(x.getGender()) && StudyStatusEnum.InResidence.getCode().equals(x.getStduyStatus())).count());
|
|
|
- statisticsVo.setNotStayMaleCount(dataList.stream().filter(x -> GenderDictionaryEnum.MALE.getCode().equals(x.getGender()) && StudyStatusEnum.AttendDaySchool.getCode().equals(x.getStduyStatus())).count());
|
|
|
- statisticsVo.setNotStayFemaleCount(dataList.stream().filter(x -> GenderDictionaryEnum.FEMALE.getCode().equals(x.getGender()) && StudyStatusEnum.AttendDaySchool.getCode().equals(x.getStduyStatus())).count());
|
|
|
+ statisticsVo.setStayMaleCount(dataList.stream().filter(
|
|
|
+ x -> GenderDictionaryEnum.MALE.getCode().equals(x.getGender())
|
|
|
+ && StudyStatusEnum.InResidence.getCode().equals(x.getStduyStatus())
|
|
|
+ && x.getReportTime() != null
|
|
|
+ ).count());
|
|
|
+ statisticsVo.setStayFemaleCount(dataList.stream().filter(
|
|
|
+ x -> GenderDictionaryEnum.FEMALE.getCode().equals(x.getGender())
|
|
|
+ && StudyStatusEnum.InResidence.getCode().equals(x.getStduyStatus())
|
|
|
+ && x.getReportTime() != null
|
|
|
+ ).count());
|
|
|
+ statisticsVo.setNotStayMaleCount(dataList.stream().filter(
|
|
|
+ x -> GenderDictionaryEnum.MALE.getCode().equals(x.getGender())
|
|
|
+ && StudyStatusEnum.AttendDaySchool.getCode().equals(x.getStduyStatus())
|
|
|
+ && x.getReportTime() != null
|
|
|
+ ).count());
|
|
|
+ statisticsVo.setNotStayFemaleCount(dataList.stream().filter(
|
|
|
+ x -> GenderDictionaryEnum.FEMALE.getCode().equals(x.getGender())
|
|
|
+ && StudyStatusEnum.AttendDaySchool.getCode().equals(x.getStduyStatus())
|
|
|
+ && x.getReportTime() != null
|
|
|
+ ).count());
|
|
|
Map<String, List<StudentReportRecordStatisticsListVo>> graduatedUniversityMap = dataList.stream().collect(Collectors.groupingBy(StudentReportRecordStatisticsListVo::getGraduatedUniversity));
|
|
|
List<ItemCountVo> graduatedUniversityList = new ArrayList<>();
|
|
|
for (String graduatedUniversity : graduatedUniversityMap.keySet()) {
|