|
|
|
@ -21,6 +21,8 @@ import java.util.*;
|
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
import static java.util.Optional.ofNullable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 统计分析service
|
|
|
|
|
* @Version 0.0.1
|
|
|
|
@ -263,6 +265,7 @@ public class StatisticalAnalysisService {
|
|
|
|
|
public Map<String, Object> adminIndexDetail(Date stime, Date etime, UniversitiesColleges universitiesColleges) {
|
|
|
|
|
|
|
|
|
|
Long universitiesCollegesId = (universitiesColleges == null ? null : universitiesColleges.getUniversitiesCollegesId());
|
|
|
|
|
Long uniOrgId = (universitiesColleges == null ? null : universitiesColleges.getOrgId());
|
|
|
|
|
List<Student> studentList = studentService.getStudentByStimeAndEtime(stime, etime, universitiesCollegesId);
|
|
|
|
|
Map<String, Object> data = new HashMap<>();
|
|
|
|
|
//注册学生数
|
|
|
|
@ -284,11 +287,11 @@ public class StatisticalAnalysisService {
|
|
|
|
|
//登录人次
|
|
|
|
|
data.put("studentPersonTime", loginCount);
|
|
|
|
|
//上线课程数
|
|
|
|
|
Long courseInfoCount = courseInfoService.getCourseInfoByStimeAndEtime(stime, etime);
|
|
|
|
|
Long courseInfoCount = courseInfoService.getCourseInfoByStimeAndEtime(stime, etime, uniOrgId);
|
|
|
|
|
data.put("courseNumber", courseInfoCount);
|
|
|
|
|
//上线应用数
|
|
|
|
|
List<ResourcesApplication> resourcesApplicationList = resourcesApplicationService.getApplicationByStimeAndEtime(stime, etime);
|
|
|
|
|
data.put("applicationNumber", resourcesApplicationList.size());
|
|
|
|
|
Long resourcesApplicationCount = resourcesApplicationService.getApplicationByStimeAndEtime(stime, etime, uniOrgId);
|
|
|
|
|
data.put("applicationNumber", resourcesApplicationCount);
|
|
|
|
|
//批改作业数
|
|
|
|
|
data.put("homeWorkNumber", studentList.size());
|
|
|
|
|
//课程学习
|
|
|
|
@ -299,6 +302,7 @@ public class StatisticalAnalysisService {
|
|
|
|
|
data.put("universitiesCollegesAuthCode", universitiesColleges != null ? universitiesColleges.getUniversitiesCollegesAuthCode() : "暂无动态码");
|
|
|
|
|
//注册用户数
|
|
|
|
|
int size = coreUserService.createLambdaQuery().andEq(CoreUser::getDelFlag, DelFlagEnum.NORMAL.getValue())
|
|
|
|
|
.andEq(CoreUser::getOrgId, ofNullable(uniOrgId))
|
|
|
|
|
.andNotEq(CoreUser::getId, 1).select().size();
|
|
|
|
|
data.put("userNumber", size);
|
|
|
|
|
//案例数量
|
|
|
|
@ -314,11 +318,13 @@ public class StatisticalAnalysisService {
|
|
|
|
|
//题库数量
|
|
|
|
|
ResourcesQuestionQuery paras1 = new ResourcesQuestionQuery();
|
|
|
|
|
paras1.setQuestionStatus(1);
|
|
|
|
|
paras1.setOrgId(uniOrgId);
|
|
|
|
|
List<ResourcesQuestion> questionList = resourcesQuestionService.getValues(paras1);
|
|
|
|
|
data.put("questionNumber", questionList.size());
|
|
|
|
|
//院校数量
|
|
|
|
|
UniversitiesCollegesQuery paras = new UniversitiesCollegesQuery();
|
|
|
|
|
paras.setUniversitiesCollegesStatus(1);
|
|
|
|
|
paras.setOrgId(uniOrgId);
|
|
|
|
|
List<UniversitiesColleges> schoolList = universitiesCollegesService.getValues(paras);
|
|
|
|
|
data.put("schoolNumber", schoolList.size());
|
|
|
|
|
return data;
|
|
|
|
|