Browse Source

上传报告sql

master
wxd 1 day ago
parent
commit
bff310a026
  1. 5
      src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs
  2. 5
      src/Shentun.Peis.Application.Contracts/TransToWebPeiss/SyncPatientRegisterReportInputDto.cs
  3. 4
      src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs

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

@ -153,6 +153,11 @@ namespace Shentun.Peis.PlugIns.WebAppoints
sql += " and is_upload='N' ";
}
if (!string.IsNullOrWhiteSpace(input.SqlString))
{
//不要重复上传,筛选是否上传状态
sql += $" {input.SqlString} ";
}
var parameters = new DynamicParameters();
parameters.Add("HandDate", DateTime.Now.Date.AddDays(-input.QueryDays));

5
src/Shentun.Peis.Application.Contracts/TransToWebPeiss/SyncPatientRegisterReportInputDto.cs

@ -27,5 +27,10 @@ namespace Shentun.Peis.TransToWebPeiss
public int UploadCountLimit { get; set; } = 100;
public List<string> ExcludeMedicalTypeIds { get; set; } = new List<string>();
/// <summary>
/// sql条件
/// </summary>
public string SqlString { get; set; }
}
}

4
src/Shentun.Peis.HttpApi.Host/Schedulers/SyncPatientRegisterReportInterfaceWorker.cs

@ -147,6 +147,9 @@ namespace Shentun.Peis.Schedulers
//单次最大的上传数量
var uploadCountLimit = Convert.ToInt32(interfaceConfig.GetValue("Interface:Scheduler:UploadCountLimit", "100"));
//sql条件
var sqlString = interfaceConfig.GetValue("Interface:Scheduler:SqlString", "");
@ -157,6 +160,7 @@ namespace Shentun.Peis.Schedulers
IsRepeatUpload = Convert.ToChar(isRepeatUpload),
UploadDateType = Convert.ToChar(uploadDateType),
UploadCountLimit = uploadCountLimit,
SqlString = sqlString
};

Loading…
Cancel
Save