yin 1 年之前
父節點
當前提交
9894c6ed66

+ 6 - 6
stmms-web/src/main/java/cn/com/qmth/stmms/admin/report/ReportSubjectRangeController.java

@@ -192,12 +192,12 @@ public class ReportSubjectRangeController extends BaseExamController {
             writer.write(new ByteArrayInputStream(subjective), subjectName, "主观题分析.xlsx");
             byte[] group = fileService.downloadReport(examId, subjectName, "分组统计分析", FormatType.XLSX);
             writer.write(new ByteArrayInputStream(group), subjectName, "分组统计分析.xlsx");
-            if(fileService.reportExist(examId, subjectName, "课程客观题分段统计", FormatType.XLSX)){
-                byte[] objectiveRange = fileService.downloadReport(examId, subjectName, "课程客观题分段统计", FormatType.XLSX);
-                writer.write(new ByteArrayInputStream(objectiveRange), subjectName, "课程客观题分段统计.xlsx");
-                byte[] objective = fileService.downloadReport(examId, subjectName, "客观题分析", FormatType.XLSX);
-                writer.write(new ByteArrayInputStream(objective), subjectName, "客观题分析.xlsx");
-            }
+        }
+        if(fileService.reportExist(examId, subjectName, "课程客观题分段统计", FormatType.XLSX)){
+            byte[] objectiveRange = fileService.downloadReport(examId, subjectName, "课程客观题分段统计", FormatType.XLSX);
+            writer.write(new ByteArrayInputStream(objectiveRange), subjectName, "课程客观题分段统计.xlsx");
+            byte[] objective = fileService.downloadReport(examId, subjectName, "客观题分析", FormatType.XLSX);
+            writer.write(new ByteArrayInputStream(objective), subjectName, "客观题分析.xlsx");
         }
     }