Browse Source

体检报告

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
e351bf27da
  1. 2
      src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs
  2. 21
      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);

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

@ -30,14 +30,21 @@ namespace Shentun.Peis
[Fact]
public async Task UploadPeisReportAsync()
{
var uploadPeisReportIuputDto = new UploadPeisReportIuputDto()
using (var unitOfWork = _unitOfWorkManager.Begin(isTransactional: true))
{
PatientRegisterId = new Guid("3a128197-3e61-23d3-1115-aed602ab82a8"),
//ReportBase64 = Shentun.Utilities.FileHelper.ToBase64("E:\\Whitedolphins\\prog20230709\\体检报告.pdf"),
ReportBase64 = Shentun.Utilities.FileHelper.ToBase64("E:\\Whitedolphins\\upload.pdf"),
};
await _appService.UploadPeisReportAsync(uploadPeisReportIuputDto);
var uploadPeisReportIuputDto = new UploadPeisReportIuputDto()
{
PatientRegisterId = new Guid("3a128197-3e61-23d3-1115-aed602ab82a8"),
//ReportBase64 = Shentun.Utilities.FileHelper.ToBase64("E:\\Whitedolphins\\prog20230709\\体检报告.pdf"),
ReportBase64 = Shentun.Utilities.FileHelper.ToBase64("E:\\Whitedolphins\\upload.pdf"),
};
await _appService.UploadPeisReportAsync(uploadPeisReportIuputDto);
await unitOfWork.CompleteAsync();
}
}
}
}
Loading…
Cancel
Save