黄贺彬 2 年之前
父节点
当前提交
ab627ad013
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TEAMModelOS.SDK/Models/Service/LessonService.cs

+ 1 - 1
TEAMModelOS.SDK/Models/Service/LessonService.cs

@@ -171,7 +171,7 @@ namespace TEAMModelOS.SDK.Models.Service
             try
             try
             {
             {
                 int year = DateTimeOffset.UtcNow.Year;
                 int year = DateTimeOffset.UtcNow.Year;
-                var clientSummaryList = lessonBase.report.clientSummaryList.Where(x => x.groupTaskCompleteCount != 0 || x.groupScore != 0 || x.score != 0 || x.tnteractScore != 0 || x.taskCompleteCount != 0);
+                var clientSummaryList = lessonBase?.report?.clientSummaryList?.Where(x => x.groupTaskCompleteCount != 0 || x.groupScore != 0 || x.score != 0 || x.tnteractScore != 0 || x.taskCompleteCount != 0);
                 IEnumerable<LessonStudent> students = new List<LessonStudent>();
                 IEnumerable<LessonStudent> students = new List<LessonStudent>();
                 if (clientSummaryList.Any())
                 if (clientSummaryList.Any())
                 {
                 {