From c67e7ad455bdbc1a9a5f07ba217c22cc1711095a Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Tue, 27 Jan 2026 16:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SumSummaryReports/SumSummaryReportAppService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Shentun.Peis.Application/SumSummaryReports/SumSummaryReportAppService.cs b/src/Shentun.Peis.Application/SumSummaryReports/SumSummaryReportAppService.cs index c08999bd..114fc406 100644 --- a/src/Shentun.Peis.Application/SumSummaryReports/SumSummaryReportAppService.cs +++ b/src/Shentun.Peis.Application/SumSummaryReports/SumSummaryReportAppService.cs @@ -474,9 +474,10 @@ namespace Shentun.Peis.SumSummaryReports .ThenInclude(x => x.SumSummaryContents) .Where(m => m.PatientId == patientRegisterEntity.PatientId && m.SumSummaryHeaders.Count > 0 + && m.MedicalTimes < patientRegisterEntity.MedicalTimes && m.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration) .OrderByDescending(m => m.MedicalTimes).ThenByDescending(m => m.MedicalStartDate) - .ToList().Skip(1).Take(historySummaryYearsLimitInt); + .ToList().Take(historySummaryYearsLimitInt); if (entlist.Any()) {