|
|
|
@ -41,19 +41,6 @@ public class ExamServiceImpl implements ExamService {
|
|
|
|
|
school.flatMap(value -> value.getPeriod().stream().filter(period ->
|
|
|
|
|
period.getId().equals(overViewDto.getPeriodId())).findFirst()).ifPresent(value1 ->
|
|
|
|
|
overView.put("semesters", value1.getSemesters()));
|
|
|
|
|
|
|
|
|
|
//获取所有考试数据
|
|
|
|
|
//List<Exam> exams = examRepository.findExamByClassId("Exam-"+overViewDto.getSchool(),overViewDto.getClassId(),overViewDto.getPeriodId());
|
|
|
|
|
|
|
|
|
|
//List<RMember> rMembers = new ArrayList<>();
|
|
|
|
|
/*for (Map.Entry<String, Object> entry : groupId.entrySet()) {
|
|
|
|
|
String key = entry.getKey();
|
|
|
|
|
Object value = entry.getValue();
|
|
|
|
|
if (key.equals("groups")) {
|
|
|
|
|
String jsonGroups = JSON.toJSONString(value);
|
|
|
|
|
rGroupList = JSON.parseObject(jsonGroups, new TypeReference<List<RGroupList>>() {});
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "数据转换错误");
|
|
|
|
|
|
|
|
|
|