From b52946878aed6c03631cb1e86d0bf9fa3f31acac Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Wed, 12 Jun 2024 20:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=96=87=E4=BB=B6=E7=94=A8?= =?UTF-8?q?=E6=80=BB=E6=A3=80=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PatientRegisters/PatientRegisterAppService.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Shentun.WebPeis.Application/PatientRegisters/PatientRegisterAppService.cs b/src/Shentun.WebPeis.Application/PatientRegisters/PatientRegisterAppService.cs index 4e12295..27bf8c4 100644 --- a/src/Shentun.WebPeis.Application/PatientRegisters/PatientRegisterAppService.cs +++ b/src/Shentun.WebPeis.Application/PatientRegisters/PatientRegisterAppService.cs @@ -78,8 +78,15 @@ namespace Shentun.WebPeis.PatientRegisters var requestPath = virtualPathsHelper.GetReportRequestPath(); var physicsPath = virtualPathsHelper.GetReportPhysicsPath(); - requestPath = $"{requestPath}\\{DateTime.Now.Year}\\{DateTime.Now.Month}\\{DateTime.Now.Day}\\"; - physicsPath = $"{physicsPath}\\{DateTime.Now.Year}\\{DateTime.Now.Month}\\{DateTime.Now.Day}\\"; + DateTime dateTime = DateTime.Now; + if (patientRegister.SummaryDate != null) + { + dateTime = patientRegister.SummaryDate.Value; + } + + + requestPath = $"{requestPath}\\{dateTime.Year}\\{dateTime.Month}\\{dateTime.Day}\\"; + physicsPath = $"{physicsPath}\\{dateTime.Year}\\{dateTime.Month}\\{dateTime.Day}\\";