Browse Source

体检报告

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
e351bf27da
  1. 2
      src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs
  2. 7
      test/Shentun.Peis.Application.Tests/TransToWebPeisAppServiceTest.cs

2
src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs

@ -169,7 +169,7 @@ namespace Shentun.Peis.TransToWebPeis
public async Task UploadPeisReportAsync(UploadPeisReportIuputDto input)
{
//同步数据
//await TransPatientRegisterByPatientRegisterIdAsync(new PatientRegisterIdInputDto { PatientRegisterId = input.PatientRegisterId });
await TransPatientRegisterByPatientRegisterIdAsync(new PatientRegisterIdInputDto { PatientRegisterId = input.PatientRegisterId });
//上传报告
var thirdInterfaces = await _thirdInterfaceRepository.GetListAsync(o => o.ThirdInterfaceType ==
ThirdInterfaceTypeFlag.TranToWebPeis);

7
test/Shentun.Peis.Application.Tests/TransToWebPeisAppServiceTest.cs

@ -30,6 +30,9 @@ namespace Shentun.Peis
[Fact]
public async Task UploadPeisReportAsync()
{
using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true))
{
var uploadPeisReportIuputDto = new UploadPeisReportIuputDto()
{
PatientRegisterId = new Guid("3a128197-3e61-23d3-1115-aed602ab82a8"),
@ -38,6 +41,10 @@ namespace Shentun.Peis
};
await _appService.UploadPeisReportAsync(uploadPeisReportIuputDto);
await unitOfWork.CompleteAsync();
}
}
}
}
Loading…
Cancel
Save