浏览代码

bug修复

wangliang 4 年之前
父节点
当前提交
0e912bc3b4

+ 2 - 1
teachcloud-report-business/src/main/java/com/qmth/teachcloud/report/business/service/impl/ReportCommonServiceImpl.java

@@ -534,7 +534,8 @@ public class ReportCommonServiceImpl implements ReportCommonService {
             tbExamCourseQueryWrapper.lambda().eq(TBExamCourse::getPublishStatus, PublishStatusEnum.PUBLISH);
             TBExamCourse tbExamCourse = tbExamCourseService.getOne(tbExamCourseQueryWrapper);
             if (Objects.isNull(tbExamCourse)) {
-                return null;
+                BigDecimal bigDecimal = new BigDecimal(0);
+                return new SurveyTeacherExamCourseResult(bigDecimal, bigDecimal, bigDecimal, bigDecimal);
             }
         }
         TAExamCourse taExamCourse = taExamCourseService.getOne(taExamCourseQueryWrapper);