From 3df7b2a7d7c6d8a83bf22a2a4d56cb1e2b327090 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Thu, 5 Feb 2026 11:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PeisReports/GetPatientRegisterReportRequestDto.cs | 5 +++++ .../PeisReports/PeisReportAppService.cs | 3 +++ 2 files changed, 8 insertions(+) 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);