|
@@ -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 });
|