|
@@ -197,12 +197,13 @@ public class ExamPaperStructureServiceImpl extends ServiceImpl<ExamPaperStructur
|
|
if (!ExamPaperStructureStatusEnum.FINISH.equals(examPaperStructure.getStatus())) {
|
|
if (!ExamPaperStructureStatusEnum.FINISH.equals(examPaperStructure.getStatus())) {
|
|
throw ExceptionResultEnum.ERROR.exception("试卷结构没有同步成功");
|
|
throw ExceptionResultEnum.ERROR.exception("试卷结构没有同步成功");
|
|
}
|
|
}
|
|
|
|
+ ExamTask examTask = examTaskService.getByCourseCodeAndPaperNumber(examPaperStructure.getSchoolId(), examPaperStructure.getCourseCode(), examPaperStructure.getPaperNumber());
|
|
String paperType = examPaperStructure.getPaperType();
|
|
String paperType = examPaperStructure.getPaperType();
|
|
List<Map> list = new ArrayList<>();
|
|
List<Map> list = new ArrayList<>();
|
|
for (String str : paperType.split(",")) {
|
|
for (String str : paperType.split(",")) {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("paperType", str);
|
|
map.put("paperType", str);
|
|
- List<Map> paperStructure = stmmsUtils.queryPaperStructure(examPaperStructure.getSchoolId(), String.valueOf(examPaperStructure.getThirdRelateId()), examPaperStructure.getPaperNumber() + str, null);
|
|
|
|
|
|
+ List<Map> paperStructure = stmmsUtils.queryPaperStructure(examPaperStructure.getSchoolId(), String.valueOf(examPaperStructure.getThirdRelateId()), examTask.getPaperNumberId() + str, null);
|
|
map.put("content", paperStructure);
|
|
map.put("content", paperStructure);
|
|
list.add(map);
|
|
list.add(map);
|
|
}
|
|
}
|