Browse Source

数据

bjmzak
wxd 1 year ago
parent
commit
02bd860245
  1. 4
      src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs
  2. 9
      src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs

4
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<SyncPatientRegisterIdsDto>(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;
}
}

9
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("无数据需要同步");
}

Loading…
Cancel
Save