Compare commits

...

2 Commits

Author SHA1 Message Date
hang a60661aaa5 Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2024-07-16 16:09:23 +08:00
hang 5041ebd58b 增加项目Id 查询条件 2024-07-16 16:09:22 +08:00
2 changed files with 4 additions and 1 deletions

View File

@ -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>();

View File

@ -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))