增加项目Id 查询条件
parent
6e7545be65
commit
5041ebd58b
|
@ -222,6 +222,9 @@ namespace IRaCIS.Application.Contracts
|
||||||
|
|
||||||
public class PatientTrialQuery : PageInput
|
public class PatientTrialQuery : PageInput
|
||||||
{
|
{
|
||||||
|
[NotDefault]
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
public string? PatientIdStr { get; set; }
|
public string? PatientIdStr { get; set; }
|
||||||
public string? PatientName { get; set; }
|
public string? PatientName { get; set; }
|
||||||
//public List<string> CalledAEList { get; set; } = new List<string>();
|
//public List<string> CalledAEList { get; set; } = new List<string>();
|
||||||
|
|
|
@ -106,7 +106,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
|
|
||||||
#region new ok
|
#region new ok
|
||||||
var query = _patientRepository
|
var query = _patientRepository.Where(t=>t.TrialId==inQuery.TrialId)
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.PatientIdStr), t => t.PatientIdStr.Contains(inQuery.PatientIdStr))
|
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.PatientIdStr), t => t.PatientIdStr.Contains(inQuery.PatientIdStr))
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.PatientName), t => t.PatientName.Contains(inQuery.PatientName))
|
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.PatientName), t => t.PatientName.Contains(inQuery.PatientName))
|
||||||
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.SubejctCode), t => t.Subject.Code.Contains(inQuery.SubejctCode))
|
.WhereIf(!string.IsNullOrWhiteSpace(inQuery.SubejctCode), t => t.Subject.Code.Contains(inQuery.SubejctCode))
|
||||||
|
|
Loading…
Reference in New Issue