|
|
|
@ -751,13 +751,19 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
|
|
|
|
|
List<SugVo> sugVos = sugVoList.stream().filter(sugVo -> sugVo.getHabook().equals(teacherDto.getTmdId())).collect(Collectors.toList());
|
|
|
|
|
LinkedHashMap<String,Object> mapTeach = new LinkedHashMap<>();
|
|
|
|
|
int[] scores = new int[5];
|
|
|
|
|
int[] scores = new int[10];
|
|
|
|
|
for (SugVo sugVo : sugVos) {
|
|
|
|
|
scores[0] += sugVo.getT_data();
|
|
|
|
|
scores[1] += sugVo.getT_green();
|
|
|
|
|
scores[2] += sugVo.getT_duration();
|
|
|
|
|
scores[3] += sugVo.getT_attendance();
|
|
|
|
|
scores[4] += sugVo.getT_interaction();
|
|
|
|
|
scores[5] += sugVo.getLesson_count();
|
|
|
|
|
scores[6] += sugVo.getPublic_count();
|
|
|
|
|
scores[7] += sugVo.getDouble_green_count();
|
|
|
|
|
scores[8] += sugVo.getMaterial_count();
|
|
|
|
|
scores[9] += sugVo.getTpcplan_count();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//T(数据)
|
|
|
|
|
mapTeach.put("TData",scores[0]);
|
|
|
|
@ -769,6 +775,12 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
mapTeach.put("TAttendance",scores[3]);
|
|
|
|
|
//T(数据)互动次数
|
|
|
|
|
mapTeach.put("TInteraction",scores[4]);
|
|
|
|
|
|
|
|
|
|
mapTeach.put("LessonCount",scores[5]);
|
|
|
|
|
mapTeach.put("PublicCount",scores[6]);
|
|
|
|
|
mapTeach.put("DoubleGreenCount",scores[7]);
|
|
|
|
|
mapTeach.put("MaterialCount",scores[8]);
|
|
|
|
|
mapTeach.put("TpcplanCount",scores[9]);
|
|
|
|
|
mapTeach.put("Lessons",lessonRecords.size());
|
|
|
|
|
return mapTeach;
|
|
|
|
|
|
|
|
|
@ -786,13 +798,18 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
.filter(sugVo -> teachers.contains(sugVo.getHabook()))
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
LinkedHashMap<String,Object> mapTeach = new LinkedHashMap<>();
|
|
|
|
|
int[] scores = new int[5];
|
|
|
|
|
int[] scores = new int[10];
|
|
|
|
|
for (SugVo sugVo : filteredSugVoList) {
|
|
|
|
|
scores[0] += sugVo.getT_data();
|
|
|
|
|
scores[1] += sugVo.getT_green();
|
|
|
|
|
scores[2] += sugVo.getT_duration();
|
|
|
|
|
scores[3] += sugVo.getT_attendance();
|
|
|
|
|
scores[4] += sugVo.getT_interaction();
|
|
|
|
|
scores[5] += sugVo.getLesson_count();
|
|
|
|
|
scores[6] += sugVo.getPublic_count();
|
|
|
|
|
scores[7] += sugVo.getDouble_green_count();
|
|
|
|
|
scores[8] += sugVo.getMaterial_count();
|
|
|
|
|
scores[9] += sugVo.getTpcplan_count();
|
|
|
|
|
}
|
|
|
|
|
//T(数据)
|
|
|
|
|
mapTeach.put("TData",scores[0]);
|
|
|
|
@ -804,18 +821,28 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
mapTeach.put("TAttendance",scores[3]);
|
|
|
|
|
//T(数据)互动次数
|
|
|
|
|
mapTeach.put("TInteraction",scores[4]);
|
|
|
|
|
mapTeach.put("LessonCount",scores[5]);
|
|
|
|
|
mapTeach.put("PublicCount",scores[6]);
|
|
|
|
|
mapTeach.put("DoubleGreenCount",scores[7]);
|
|
|
|
|
mapTeach.put("MaterialCount",scores[8]);
|
|
|
|
|
mapTeach.put("TpcplanCount",scores[9]);
|
|
|
|
|
mapTeach.put("Lessons",lessonRecords.size());
|
|
|
|
|
|
|
|
|
|
return mapTeach;
|
|
|
|
|
}else {
|
|
|
|
|
LinkedHashMap<String, Object> mapTeach = new LinkedHashMap<>();
|
|
|
|
|
int[] scores = new int[5];
|
|
|
|
|
int[] scores = new int[10];
|
|
|
|
|
for (SugVo sugVo : sugVoList) {
|
|
|
|
|
scores[0] += sugVo.getT_data();
|
|
|
|
|
scores[1] += sugVo.getT_green();
|
|
|
|
|
scores[2] += sugVo.getT_duration();
|
|
|
|
|
scores[3] += sugVo.getT_attendance();
|
|
|
|
|
scores[4] += sugVo.getT_interaction();
|
|
|
|
|
scores[5] += sugVo.getLesson_count();
|
|
|
|
|
scores[6] += sugVo.getPublic_count();
|
|
|
|
|
scores[7] += sugVo.getDouble_green_count();
|
|
|
|
|
scores[8] += sugVo.getMaterial_count();
|
|
|
|
|
scores[9] += sugVo.getTpcplan_count();
|
|
|
|
|
}
|
|
|
|
|
//T(数据)
|
|
|
|
|
mapTeach.put("TData", scores[0]);
|
|
|
|
@ -827,6 +854,11 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
mapTeach.put("TAttendance", scores[3]);
|
|
|
|
|
//T(数据)互动次数
|
|
|
|
|
mapTeach.put("TInteraction", scores[4]);
|
|
|
|
|
mapTeach.put("LessonCount",scores[5]);
|
|
|
|
|
mapTeach.put("PublicCount",scores[6]);
|
|
|
|
|
mapTeach.put("DoubleGreenCount",scores[7]);
|
|
|
|
|
mapTeach.put("MaterialCount",scores[8]);
|
|
|
|
|
mapTeach.put("TpcplanCount",scores[9]);
|
|
|
|
|
mapTeach.put("Lessons",lessonRecords.size());
|
|
|
|
|
|
|
|
|
|
return mapTeach;
|
|
|
|
@ -1005,6 +1037,11 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
|
sugVo.setDiffential(Integer.parseInt(dataMap.get("diffential").toString()));
|
|
|
|
|
sugVo.setSmartRating(Integer.parseInt(dataMap.get("smartRating").toString()));
|
|
|
|
|
sugVo.setCowork(Integer.parseInt(dataMap.get("cowork").toString()));
|
|
|
|
|
sugVo.setLesson_count(Integer.parseInt(dataMap.get("lesson_count").toString()));
|
|
|
|
|
sugVo.setPublic_count(Integer.parseInt(dataMap.get("public_count").toString()));
|
|
|
|
|
sugVo.setDouble_green_count(Integer.parseInt(dataMap.get("double_green_count").toString()));
|
|
|
|
|
sugVo.setMaterial_count(Integer.parseInt(dataMap.get("material_count").toString()));
|
|
|
|
|
sugVo.setTpcplan_count(Integer.parseInt(dataMap.get("tpcplan_count").toString()));
|
|
|
|
|
return sugVo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|