修改查询
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-14 15:01:18 +08:00
parent 329437411d
commit 3bf26dbbef
4 changed files with 5 additions and 1 deletions
@@ -509,6 +509,7 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
public Guid? TrialReadingCriterionId { get; set; }
public string? TaskName { get; set; }
}
public class InspectionBase
@@ -183,8 +183,9 @@ namespace IRaCIS.Core.Application.Service.Inspection
.WhereIf(dto.BatchId != null, x => x.BatchId == dto.BatchId)
.WhereIf(dto.BatchId == null && dto.GeneralId != null, x => x.GeneralId == dto.GeneralId)
.WhereIf(dto.TrialReadingCriterionId != null, x => x.TrialReadingCriterionId == dto.TrialReadingCriterionId)
.WhereIf(!dto.TaskName.IsNullOrEmpty(), x => x.TaskName.Contains(dto.TaskName) || x.BlindName.Contains(dto.TaskName))
.WhereIf(!dto.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(dto.SubjectInfo))
.WhereIf(!dto.RoleName.IsNullOrEmpty(), x => x.RoleName.Contains(dto.RoleName))
//.WhereIf(dto.VisitPlanInfo != null&& dto.VisitPlanInfo!=(decimal) 1.11, x => x.VisitNum == dto.VisitPlanInfo)