diff --git a/VOL.Ai/Services/AiAppService.cs b/VOL.Ai/Services/AiAppService.cs index ceec64e..508764a 100644 --- a/VOL.Ai/Services/AiAppService.cs +++ b/VOL.Ai/Services/AiAppService.cs @@ -353,7 +353,7 @@ namespace VOL.Ai.Services StudentName = s.StudentName, Sex = s.Sex, Age = s.Age, - Photo = s.Photo, + Photo = s.Photo ?? "", ClassName = c.ClassName, GradeName = g.GradeName, OrderNo = s.OrderNo @@ -1488,7 +1488,7 @@ namespace VOL.Ai.Services && (paramDto.ClassRoomStageId <= 0 || hrd.ClassroomStageId == paramDto.ClassRoomStageId) select hrd; - var heartRateDataList = await query.Select(x => new { x.GradeName, x.StudentNo, x.StudentName, x.Sex, x.ClassName, x.Value, x.Strength, x.Consumption, x.ScoreTime }).ToListAsync(); + var heartRateDataList = await query.ToListAsync(); if (heartRateDataList.Count == 0) return res;