diff --git a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java index 6805213..bea99cc 100644 --- a/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java +++ b/src/main/java/cn/teammodel/controller/admin/service/impl/TeacherServiceImpl.java @@ -144,7 +144,7 @@ public class TeacherServiceImpl implements TeacherService { Map degreeCount = gpTeachers.stream() .filter(gpTeacher -> gpTeacher.getDegree() != null) .collect(Collectors.groupingBy(GpTeacher::getDegree, Collectors.counting())); - Map practiceCount = getStringIntegerMap(teacherDto, gpTeachers); + //Map practiceCount = getStringIntegerMap(teacherDto, gpTeachers); if(!genderCount.containsKey("F")) { genderCount.put("F",0L); @@ -153,12 +153,12 @@ public class TeacherServiceImpl implements TeacherService { }else if (!genderCount.containsKey("M")){ genderCount.put("M",0L); } - Map genderMap = new HashMap<>(); + /* Map genderMap = new HashMap<>(); Map practiceMap = new HashMap<>(); for (GpTeacher gpTeacher : gpTeachers) { genderMap.put(gpTeacher.basic.name, gpTeacher.basic.gender); practiceMap.put(gpTeacher.basic.name, gpTeacher.practiceTime); - } + }*/ for (GpTeacherVo teacher : teachersList) { for(GpTeacher gpTeacher : gpTeachers) { @@ -182,9 +182,9 @@ public class TeacherServiceImpl implements TeacherService { } } } - teachers.put("practice", practiceCount); - teachers.put("practiceMap", practiceMap); - teachers.put("genderMap", genderMap); + //teachers.put("practice", practiceCount); + //teachers.put("practiceMap", practiceMap); + //teachers.put("genderMap", genderMap); teachers.put("gender", genderCount); teachers.put("degree", degreeCount); teachers.put("info", teachersList);