Forráskód Böngészése

update 名单名称

CrazyIter_Bin 3 éve
szülő
commit
d9115233df

+ 4 - 1
TEAMModelOS/Controllers/Both/LessonRecordController.cs

@@ -394,10 +394,13 @@ namespace TEAMModelOS.Controllers
                 if (groupIds.Any()) {
                    List<GroupListDto> groupLists= await GroupListService.GetGroupListListids(_azureCosmos.GetCosmosClient(), _dingDing, groupIds.ToList(), school);
                     lessonRecords.ForEach(x => {
+                        List<string> groupNmae = new List<string>();
                         x.groupIds.ForEach(y => {
                            var dto= groupLists.Find(z => z.id.Equals(y));
-                            y = dto != null ? dto.name : "-";
+                           string name  = dto != null ? dto.name : "-";
+                            groupNmae.Add(name);
                         });
+                        x.groupIds = groupNmae;
                     });
                 }
                 return Ok(new { currCount = lessonRecords.Count, continuationToken, lessonRecords });