浏览代码

试卷结构查询没客观题paperType不传

caozixuan 2 年之前
父节点
当前提交
a63ec2ac75

+ 4 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/GradePaperStructServiceImpl.java

@@ -271,6 +271,9 @@ public class GradePaperStructServiceImpl extends ServiceImpl<GradePaperStructMap
         String subjectCode = examPaperStructure.getCourseCode().concat(examPaperStructure.getPaperType()).concat(examPaperStructure.getSequence());
 
         String examPaperObj = examPaperStructure.getObjectiveStructure();
+
+        // 如果没有客观题 试卷类型传空
+        paperType = null;
         if (SystemConstant.strNotNull(examPaperObj)) {
             List<Question> examPaperObjList = JSON.parseArray(examPaperObj, Question.class);
             if (examPaperObjList != null && examPaperObjList.size() > 0) {
@@ -278,7 +281,7 @@ public class GradePaperStructServiceImpl extends ServiceImpl<GradePaperStructMap
             }
         }
 
-        String cloudInfoJson = cloudMarkingTaskUtils.queryPaperStructure(schoolId, examId, subjectCode, null);
+        String cloudInfoJson = cloudMarkingTaskUtils.queryPaperStructure(schoolId, examId, subjectCode, paperType);
         examPaperStructure.setCloudInfoJson(cloudInfoJson);
         examPaperStructure.setStructureChange(false);
         examPaperStructureService.updateById(examPaperStructure);