CrazyIter_Bin 2 년 전
부모
커밋
43bc7c8840
2개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      TEAMModelOS.FunctionV4/ServiceBus/ActiveTaskTopic.cs
  2. 10 0
      TEAMModelOS/Controllers/Both/LessonRecordController.cs

+ 9 - 0
TEAMModelOS.FunctionV4/ServiceBus/ActiveTaskTopic.cs

@@ -1463,6 +1463,15 @@ namespace TEAMModelOS.FunctionV4.ServiceBus
                                         lessonRecord.examCount = lessonBase.summary.examCount;
                                         lessonRecord.totalInteractPoint = lessonBase.summary.totalInteractPoint;
                                         lessonRecord.learningCategory = lessonBase.summary.learningCategory;
+                                        if (lessonRecord.learningCategory == null)
+                                        {
+                                            
+                                            lessonRecord.learningCategory = new LearningCategory();
+                                        }
+                                        if (lessonRecord.hitaClientCmpCount > 0) {
+
+                                            lessonRecord.learningCategory.cooperation = 1;
+                                        }
                                         if (!string.IsNullOrWhiteSpace(lessonRecord.school))
                                         {
                                             lessonBase.student.ForEach(x =>

+ 10 - 0
TEAMModelOS/Controllers/Both/LessonRecordController.cs

@@ -793,6 +793,16 @@ namespace TEAMModelOS.Controllers
                             if (rcd.hitaClientCmpCount <= 0 && rcd.collateTaskCount > 0) {
                                 rcd.hitaClientCmpCount= rcd.collateTaskCount;
                             }
+                            if (rcd.learningCategory == null)
+                            {
+
+                                rcd.learningCategory = new LearningCategory();
+                            }
+                            if (rcd.hitaClientCmpCount > 0)
+                            {
+
+                                rcd.learningCategory.cooperation = 1;
+                            }
                             lessonRecords.Add(rcd);
                         }
                         continuationToken = item.GetContinuationToken();