Uat_Study
he 2022-11-21 10:56:02 +08:00
parent 595ba030e6
commit b8fb96872a
1 changed files with 1 additions and 0 deletions

View File

@ -946,6 +946,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
public (int, IOrderedQueryable<IRUnReadSubjectView>) GetOrderReadingIQueryable(Guid trialId, Guid? trialReadingCriterionId,string? subjectCode =null)
{
var visitGroupQuery = _visitTaskRepository.Where(x => x.TrialId == trialId && x.DoctorUserId == _userInfo.Id)
.Include(x=>x.TrialReadingCriterion)
.WhereIf(trialReadingCriterionId != null, t => t.TrialReadingCriterionId == trialReadingCriterionId)
.WhereIf(!string.IsNullOrEmpty(subjectCode), t => t.Subject.Code.Contains(subjectCode) || t.BlindSubjectCode.Contains(subjectCode))