|
|
@ -8,6 +8,7 @@ import cn.teammodel.model.dto.admin.exam.OverViewDto;
|
|
|
|
import cn.teammodel.model.entity.common.Exam;
|
|
|
|
import cn.teammodel.model.entity.common.Exam;
|
|
|
|
import cn.teammodel.repository.ExamRepository;
|
|
|
|
import cn.teammodel.repository.ExamRepository;
|
|
|
|
import cn.teammodel.utils.GroupUtil;
|
|
|
|
import cn.teammodel.utils.GroupUtil;
|
|
|
|
|
|
|
|
import cn.teammodel.utils.SnowflakeIdGenerator;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@ -35,6 +36,8 @@ public class ExamServiceImpl implements ExamService {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
overView = GroupUtil.getGroupId(overViewDto,new GroupUtil(env), request,url);
|
|
|
|
overView = GroupUtil.getGroupId(overViewDto,new GroupUtil(env), request,url);
|
|
|
|
examRate = GroupUtil.getGroupId(overViewDto,new GroupUtil(env), request,url_exam);
|
|
|
|
examRate = GroupUtil.getGroupId(overViewDto,new GroupUtil(env), request,url_exam);
|
|
|
|
|
|
|
|
//SnowflakeIdGenerator generator = new SnowflakeIdGenerator(1);
|
|
|
|
|
|
|
|
//overView.put("reportId",generator.nextId());
|
|
|
|
overView.putAll(examRate);
|
|
|
|
overView.putAll(examRate);
|
|
|
|
//获取所有考试数据
|
|
|
|
//获取所有考试数据
|
|
|
|
//List<Exam> exams = examRepository.findExamByClassId("Exam-"+overViewDto.getSchool(),overViewDto.getClassId(),overViewDto.getPeriodId());
|
|
|
|
//List<Exam> exams = examRepository.findExamByClassId("Exam-"+overViewDto.getSchool(),overViewDto.getClassId(),overViewDto.getPeriodId());
|
|
|
|