增加访视名称查询
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-04-30 14:01:08 +08:00
parent c78cbbb737
commit bea324aa56
2 changed files with 5 additions and 0 deletions

View File

@ -445,6 +445,9 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
/// </summary>
public decimal? VisitPlanInfo { get; set; }
public string? VisitName { get; set; }
/// <summary>
/// 开始时间
/// </summary>

View File

@ -190,6 +190,8 @@ namespace IRaCIS.Core.Application.Service.Inspection
.WhereIf(!inQuery.TaskName.IsNullOrEmpty(), x => x.TaskName.Contains(inQuery.TaskName) || x.BlindName.Contains(inQuery.TaskName))
.WhereIf(!inQuery.SubjectInfo.IsNullOrEmpty(), x => x.SubjectCode.Contains(inQuery.SubjectInfo))
.WhereIf(!inQuery.RoleName.IsNullOrEmpty(), x => x.RoleName.Contains(inQuery.RoleName))
.WhereIf(!inQuery.VisitName.IsNullOrEmpty(), x => x.VisitName.Contains(inQuery.VisitName))
//.WhereIf(dto.VisitPlanInfo != null&& dto.VisitPlanInfo!=(decimal) 1.11, x => x.VisitNum == dto.VisitPlanInfo)
//.WhereIf(dto.VisitPlanInfo != (decimal)1.11,x=>x.InPlan!=null&& x.InPlan==false)
.WhereIf(inQuery.StartTime != null, x => x.CreateTime >= inQuery.StartTime)