修复查询bug

This commit is contained in:
2022-09-19 16:56:28 +08:00
parent 6451f15ed6
commit 8d4c56619e
2 changed files with 50 additions and 1 deletions
@@ -1026,7 +1026,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
#endregion
var readingTool = await _trialRepository.Where(x => x.Id == iRUnReadSubjectQuery.TrialId).Select(x => x.ReadingTool).FirstNotNullAsync();
var readingTool = await _trialRepository.Where(x => x.Id == iRUnReadSubjectQuery.TrialId).Select(x => x.ReadingTool).FirstOrDefaultAsync();
#region Subject
var isReadingTaskViewInOrder = await _trialRepository.Where(x => x.Id == iRUnReadSubjectQuery.TrialId).Select(x => x.IsReadingTaskViewInOrder).FirstOrDefaultAsync();