Compare commits
No commits in common. "4526e237a6bbb95964c05c6fc108ccc749ccd9ea" and "ab75199f1702779685c4cca401fecc789bd141ee" have entirely different histories.
4526e237a6
...
ab75199f17
@ -334,7 +334,16 @@ public class AiolExamController extends JeecgController<AiolExam, IAiolExamServi
|
||||
return Result.error("该章节没有绑定练习");
|
||||
}
|
||||
List<String> examIds = list.stream().map(AiolEntityLink::getTargetId).collect(Collectors.toList());
|
||||
return Result.OK(examService.listByIds(examIds));
|
||||
List<AiolExam> exams = examService.listByIds(examIds);
|
||||
List<String> paperIds = exams.stream().map(AiolExam::getPaperId).collect(Collectors.toList());
|
||||
ArrayList<Object> objects = new ArrayList<>();
|
||||
for (String paperId : paperIds) {
|
||||
Result<?> result = paperQuestionController.paperDetail(paperId);
|
||||
if (result.getCode() == 200) {
|
||||
objects.add(result.getResult());
|
||||
}
|
||||
}
|
||||
return Result.OK(objects);
|
||||
}
|
||||
|
||||
@PostMapping("/submitExam")
|
||||
|
Loading…
x
Reference in New Issue
Block a user