From 02bd860245cbf7dc9961d7fa3f9b6b9f862ad92a Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Wed, 12 Jun 2024 20:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebAppoints/WebAppointWebPeisPlugIns.cs | 4 ++-- .../SyncPatientRegisterReportInterfaceWorker.cs | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs b/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs index 661b89e..0b73554 100644 --- a/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs +++ b/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs @@ -99,11 +99,11 @@ namespace Shentun.Peis.PlugIns.WebAppoints SELECT id from patient_register - where last_modification_time > @HandDate and + where summary_date > @HandDate and complete_flag = @CompleteFlag "; var patientRegisterIds = (await conn.QueryAsync(sql, - new { HandDate = DateTime.Now.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); + new { HandDate = DateTime.Now.Date.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); return patientRegisterIds; } } diff --git a/src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs b/src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs index 6c362b0..e1ffd7d 100644 --- a/src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs +++ b/src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs @@ -139,11 +139,14 @@ namespace Shentun.Peis.Schedulers } - Logger.LogInformation($"同步数据成功:人员登记ID[{string.Join(',', pluginsOut.Select(s => s.Id))}]"); + Logger.LogError($"同步数据成功:人员登记ID[{string.Join(',', pluginsOut.Select(s => s.Id))}]"); + } + else + { + Logger.LogError("无数据需要同步"); } - - Logger.LogInformation("无数据需要同步"); + }