|
@@ -261,8 +261,17 @@ public class GradePaperStructServiceImpl extends ServiceImpl<GradePaperStructMap
|
|
|
String examId = String.valueOf(examPaperStructure.getThirdRelateId());
|
|
|
// 科目代码(课程代码+卷型+课程序号)
|
|
|
String subjectCode = examPaperStructure.getCourseCode().concat(examPaperStructure.getPaperType()).concat(examPaperStructure.getSequence());
|
|
|
- String objective = examPaperStructure.getObjectiveStructure();
|
|
|
- String cloudInfoJson = cloudMarkingTaskUtils.queryPaperStructure(schoolId, examId, subjectCode, SystemConstant.strNotNull(objective) ? examPaperStructure.getPaperType() : null);
|
|
|
+
|
|
|
+ String paperType = null;
|
|
|
+ String examPaperObj = examPaperStructure.getObjectiveStructure();
|
|
|
+ if (SystemConstant.strNotNull(examPaperObj)) {
|
|
|
+ List<Question> examPaperObjList = JSON.parseArray(examPaperObj, Question.class);
|
|
|
+ if (examPaperObjList != null && examPaperObjList.size() > 0) {
|
|
|
+ paperType = examPaperStructure.getPaperType();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ String cloudInfoJson = cloudMarkingTaskUtils.queryPaperStructure(schoolId, examId, subjectCode,paperType);
|
|
|
examPaperStructure.setCloudInfoJson(cloudInfoJson);
|
|
|
examPaperStructure.setStructureChange(false);
|
|
|
examPaperStructureService.updateById(examPaperStructure);
|