From bfdd4cfc5092e30290f83ee7b5a47e00e541e101 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Fri, 10 May 2024 01:22:11 +0800 Subject: [PATCH] =?UTF-8?q?LIS=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrintReports/PrintReportAppService.cs | 2 +- .../PrintReportAppServiceTest.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs b/src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs index 9e2dd19..ed0a2ad 100644 --- a/src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs +++ b/src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs @@ -250,7 +250,7 @@ namespace Shentun.Peis.PrintReports //生成LIS条码 var lisRequests = await _lisRequestManager.SetLisRequestAsync(input.PatientRegisterId); await _unitOfWorkManager.Current.SaveChangesAsync(); - //await _unitOfWorkManager.Current.CompleteAsync(); + await _unitOfWorkManager.Current.CompleteAsync(); //检索条码数据 diff --git a/test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs b/test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs index e25478e..3d2f21b 100644 --- a/test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs +++ b/test/Shentun.Peis.Application.Tests/PrintReportAppServiceTest.cs @@ -34,14 +34,14 @@ namespace Shentun.Peis using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true)) { var items = await _appService.GetLisRequestReportByPatientRegisterIdAsync(new PatientRegisterIdInputDto() - { PatientRegisterId = new Guid("3a126cec-ae51-8273-67aa-3003d6e7a70b") }); + { PatientRegisterId = new Guid("3a12707e-bc54-129e-64d0-8cf5556a023c") }); _output.WriteLine(items.Count().ToString()); foreach (var item in items) { _output.WriteLine(item.PatientName + "," + item.CustomerOrgName + "," + item.DepartmentName + item.AsbitemNames); } - await unitOfWork.CompleteAsync(); + //await unitOfWork.CompleteAsync(); } }