|  | @@ -240,6 +240,9 @@ public class MyController {
 | 
	
		
			
				|  |  |              m.put(struct.getExtend(), struct.getTitleZh() + (struct.getTitleEn().isEmpty() ? "":" "+struct.getTitleEn()));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        // 获取总用户数
 | 
	
		
			
				|  |  | +        Integer total = usersService.count();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          // 获取练习统计 - 按题型进行分组统计
 | 
	
		
			
				|  |  |          Integer exerciseTime = 0;
 | 
	
		
			
				|  |  |          Integer exerciseQuestion = 0;
 | 
	
	
		
			
				|  | @@ -251,10 +254,13 @@ public class MyController {
 | 
	
		
			
				|  |  |              exerciseList.add(new UserExerciseExtendDto(m.get(type.getModule()), type.getUserNumber(), type.getUserTime(), type.getUserCorrect()));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // todo 练习统计排行
 | 
	
		
			
				|  |  | +        UserRankStatRelation exerciseRank = userReportService.rankExerciseByTime(user.getId(), startTime, endTime);
 | 
	
		
			
				|  |  | +        exerciseRank.setTotal(total);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          dto.setExerciseTime(exerciseTime);
 | 
	
		
			
				|  |  |          dto.setExerciseQuestion(exerciseQuestion);
 | 
	
		
			
				|  |  |          dto.setExerciseList(exerciseList);
 | 
	
		
			
				|  |  | +        dto.setExerciseExceed(exerciseRank);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 获取模考统计 - 按卷子
 | 
	
		
			
				|  |  |          Integer examinationTime = 0;
 | 
	
	
		
			
				|  | @@ -272,10 +278,13 @@ public class MyController {
 | 
	
		
			
				|  |  |              examinationPaperList.add(d);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // todo 模考统计排行
 | 
	
		
			
				|  |  | +        UserRankStatRelation examinationRank = userReportService.rankExaminationByTime(user.getId(), startTime, endTime);
 | 
	
		
			
				|  |  | +        examinationRank.setTotal(total);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          dto.setExaminationTime(examinationTime);
 | 
	
		
			
				|  |  |          dto.setExaminationPaper(examinationPaper);
 | 
	
		
			
				|  |  |          dto.setExaminationList(examinationPaperList);
 | 
	
		
			
				|  |  | +        dto.setExaminationExceed(examinationRank);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 获取课程访问记录 - 按课时
 | 
	
		
			
				|  |  |          Integer classTime = 0;
 | 
	
	
		
			
				|  | @@ -297,10 +306,14 @@ public class MyController {
 | 
	
		
			
				|  |  |              courseResultList.add(d);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // todo 听课统计排行
 | 
	
		
			
				|  |  | +        UserRankStatRelation classRank = userCourseRecordService.rankByTime(user.getId(), startTime, endTime);
 | 
	
		
			
				|  |  | +        classRank.setTotal(total);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          dto.setClassTime(classTime);
 | 
	
		
			
				|  |  |          dto.setClassCourse(classCourse);
 | 
	
		
			
				|  |  |          dto.setClassList(courseResultList);
 | 
	
		
			
				|  |  | +        dto.setClassExceed(classRank);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return ResponseHelp.success(dto);
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -387,34 +400,6 @@ public class MyController {
 | 
	
		
			
				|  |  |          User user = (User) shiroHelp.getLoginUser();
 | 
	
		
			
				|  |  |          UserStudyDayDto dto = new UserStudyDayDto();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        List<ExerciseStruct> p = exerciseStructService.main();
 | 
	
		
			
				|  |  | -        Map<String, String> m = new HashMap<>();
 | 
	
		
			
				|  |  | -        for (ExerciseStruct struct : p){
 | 
	
		
			
				|  |  | -            if (struct.getExtend() == null || struct.getExtend().isEmpty()) continue;
 | 
	
		
			
				|  |  | -            m.put(struct.getExtend(), struct.getTitleZh() + (struct.getTitleEn().isEmpty() ? "":" "+struct.getTitleEn()));
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        // 获取练习统计 - 按题型进行分组统计
 | 
	
		
			
				|  |  | -        Integer exerciseTime = 0;
 | 
	
		
			
				|  |  | -        Integer exerciseQuestion = 0;
 | 
	
		
			
				|  |  | -        List<UserExerciseExtendDto> exerciseList = new ArrayList<>();
 | 
	
		
			
				|  |  | -        List<UserStudyStatRelation> typeList = userReportService.statGroupExerciseType(user.getId(), startTime, endTime);
 | 
	
		
			
				|  |  | -        for(UserStudyStatRelation type:typeList){
 | 
	
		
			
				|  |  | -            exerciseTime += type.getUserTime();
 | 
	
		
			
				|  |  | -            exerciseQuestion += type.getUserNumber();
 | 
	
		
			
				|  |  | -            exerciseList.add(new UserExerciseExtendDto(m.get(type.getModule()), type.getUserNumber(), type.getUserTime(), type.getUserCorrect()));
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        dto.setExerciseTime(exerciseTime);
 | 
	
		
			
				|  |  | -        dto.setExerciseQuestion(exerciseQuestion);
 | 
	
		
			
				|  |  | -        dto.setExerciseList(exerciseList);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        // 获取模考统计 - 按卷子
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        // 获取课程访问记录 - 按课时
 | 
	
		
			
				|  |  | -        Integer classTime = 0;
 | 
	
		
			
				|  |  | -        Integer classCourse = 0;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          return ResponseHelp.success(dto);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |