diff --git a/src/Shentun.Peis.Application.Contracts/PeisReports/GetPatientRegisterReportRequestDto.cs b/src/Shentun.Peis.Application.Contracts/PeisReports/GetPatientRegisterReportRequestDto.cs index 42d75b71..a6b0da5d 100644 --- a/src/Shentun.Peis.Application.Contracts/PeisReports/GetPatientRegisterReportRequestDto.cs +++ b/src/Shentun.Peis.Application.Contracts/PeisReports/GetPatientRegisterReportRequestDto.cs @@ -30,6 +30,11 @@ namespace Shentun.Peis.PeisReports /// public string? PatientName { get; set; } + /// + /// 性别 + /// + public char? SexId { get; set; } + /// /// 手机号 (检索手机跟电话两个) /// diff --git a/src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs b/src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs index 630fe8a9..04a6d3e2 100644 --- a/src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs +++ b/src/Shentun.Peis.Application/PeisReports/PeisReportAppService.cs @@ -628,6 +628,9 @@ namespace Shentun.Peis.PeisReports sumquery = sumquery.Where(m => m.patient.MobileTelephone == input.phone || m.patient.Telephone == input.phone); } + if (input.SexId != null) + sumquery = sumquery.Where(m => m.patientRegister.SexId == input.SexId); + if (input.CompleteFlag != null && input.CompleteFlag != PatientRegisterCompleteFlag.ItemCheckUnSumCheck) { sumquery = sumquery.Where(m => m.patientRegister.CompleteFlag == input.CompleteFlag);