Browse Source

报告

bjmzak
wxd 2 years ago
parent
commit
d1ac36e74b
  1. 2
      src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs
  2. 11
      src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs

2
src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs

@ -99,7 +99,7 @@ namespace Shentun.Peis.PlugIns.WebAppoints
SELECT
id
from patient_register
where summary_date > @HandDate and
where summary_date >= @HandDate and
complete_flag = @CompleteFlag
";
var patientRegisterIds = (await conn.QueryAsync<SyncPatientRegisterIdsDto>(sql,

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

@ -228,10 +228,10 @@ namespace Shentun.Peis.TransToWebPeis
{
var thirdInterface = await _thirdInterfaceRepository.FirstOrDefaultAsync(f => f.ThirdInterfaceType == ThirdInterfaceTypeFlag.TranToWebPeis);
//if (thirdInterface.IsActive != 'Y')
//{
// throw new UserFriendlyException("该接口已禁用");
//}
if (thirdInterface.IsActive != 'Y')
{
throw new UserFriendlyException("该接口已禁用");
}
var parmValue = thirdInterface.ParmValue;
var configurationBuilder = new ConfigurationBuilder()
@ -1470,6 +1470,7 @@ namespace Shentun.Peis.TransToWebPeis
/// 临时导入2024年报告
/// </summary>
/// <returns></returns>
[RemoteService(false)]
public async Task TempExportReportAsync()
{
@ -1483,7 +1484,7 @@ namespace Shentun.Peis.TransToWebPeis
{
using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
{
var isUploadReport = WebDb0520.Ado.GetDataTable($"select patient_register_id from patient_register where patient_register_id='{item}' and report_file is null ").Rows.Count;
var isUploadReport = WebDb0520.Ado.GetDataTable($"select patient_register_id,report_file from patient_register where patient_register_id='{item}' and report_file is null ").Rows.Count;
if (isUploadReport == 1)
{
await SyncPatientRegisterReportByPatientRegisterIdAsync(new PatientRegisterIdInputDto

Loading…
Cancel
Save