diff --git a/VOL.Business/Services/Norm/CacheQueryService.cs b/VOL.Business/Services/Norm/CacheQueryService.cs index 7f3a60e..4b153bf 100644 --- a/VOL.Business/Services/Norm/CacheQueryService.cs +++ b/VOL.Business/Services/Norm/CacheQueryService.cs @@ -18,6 +18,7 @@ using VOL.Entity.DomainModels.XinWei; using VOL.Entity.Enum; using VOL.Model.School.Response; using VOL.System.IRepositories; +using VOL.System.Repositories; using YD_XinWei.Api.SmartSportsEntitys; namespace VOL.Business.Services.Norm @@ -57,8 +58,9 @@ namespace VOL.Business.Services.Norm if (sportsTestResults == null) { var iotTestResults = await _sportsTestResultRepository - .FindAsIQueryable(x => x.IsDisplay && x.SchoolCode == tenantId) + .FindAsIQueryable(x => x.IsDisplay && x.SchoolCode == tenantId && x.DataSource==DataSource.YL) .ToListAsync(); + var sportsIot = _mapper.Map>(iotTestResults); var aiTestResults = await _sportsTestResultRepository.DbContext.Set