diff --git a/VOL.Ai/Services/AiAppService.cs b/VOL.Ai/Services/AiAppService.cs index 0a84ecc..01e7714 100644 --- a/VOL.Ai/Services/AiAppService.cs +++ b/VOL.Ai/Services/AiAppService.cs @@ -1084,7 +1084,7 @@ namespace VOL.Ai.Services var fastJumpRopeDatas = _mapper.Map>(paramDto.Datas); var classIds = paramDto.Datas.Select(x => x.ClassId).Distinct().ToList(); - var classList = await _classRepository.FindAsync(x => x.SchoolCode == paramDto.SchoolCode && classIds.Contains(x.Id)); + var classList = await _classRepository.DbContext.Set().Where(x => x.SchoolCode == paramDto.SchoolCode && classIds.Contains((int)x.Id)).ToListAsync(); var classDict = classList.ToDictionary(x => x.Id, x => x); fastJumpRopeDatas.ForEach(data => @@ -1096,7 +1096,7 @@ namespace VOL.Ai.Services data.ClassRoomRecordId = paramDto.ClassRoomRecordId; data.GroupId = paramDto.GroupId; data.TeacherId = paramDto.TeacherId; - data.GradeId = classInfo.GradeId; + data.GradeId = (int)classInfo.GradeId; data.GradeName = classInfo.GradeName; data.ClassName = classInfo.ClassName; data.ScoreTime = paramDto.ScoreTime;