Uat_Study
{872297557@qq.com} 2022-12-07 16:10:34 +08:00
parent 2d659bc1c9
commit 77ae724aea
2 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
ObjectRelationParentId = data.ObjectRelationParentId, ObjectRelationParentId = data.ObjectRelationParentId,
GeneralId = data.GeneralId, GeneralId = data.GeneralId,
//TrialReadingCriterionName= leftCriterion.CriterionName //TrialReadingCriterionName = data.TrialReadingCriterion.CriterionName
}; };
query = query.WhereIf(dto.SiteId != null, x => x.SiteId == dto.SiteId) query = query.WhereIf(dto.SiteId != null, x => x.SiteId == dto.SiteId)
@ -175,7 +175,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
#endregion #endregion
.WhereIf(dto.BatchId != null, x => x.BatchId == dto.BatchId) .WhereIf(dto.BatchId != null, x => x.BatchId == dto.BatchId)
.WhereIf(dto.BatchId == null && dto.GeneralId != null, x => x.GeneralId == dto.GeneralId) .WhereIf(dto.BatchId == null && dto.GeneralId != null, x => x.GeneralId == dto.GeneralId)
.WhereIf(dto.TrialReadingCriterionId == null, x => x.TrialReadingCriterionId == dto.TrialReadingCriterionId) .WhereIf(dto.TrialReadingCriterionId != null, x => x.TrialReadingCriterionId == dto.TrialReadingCriterionId)
.WhereIf(!dto.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(dto.SubjectInfo)) .WhereIf(!dto.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(dto.SubjectInfo))

View File

@ -152,6 +152,8 @@ namespace IRaCIS.Core.Domain.Models
public Guid? DoctorUserId { get; set; } public Guid? DoctorUserId { get; set; }
[ForeignKey("TrialReadingCriterionId")]
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
} }