|
|
|
@ -22,12 +22,12 @@ namespace WorkerSynReport
|
|
|
|
|
{
|
|
|
|
|
while (!stoppingToken.IsCancellationRequested)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
await SynWetMixer();
|
|
|
|
|
await SynDry();
|
|
|
|
|
await SynWetMixer();
|
|
|
|
|
|
|
|
|
|
await SynGel();
|
|
|
|
|
|
|
|
|
|
await Task.Delay(1000*30, stoppingToken);
|
|
|
|
|
await Task.Delay(1000*60, stoppingToken);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -59,7 +59,7 @@ namespace WorkerSynReport
|
|
|
|
|
|
|
|
|
|
if (lsMain.Any())
|
|
|
|
|
{
|
|
|
|
|
XTrace.WriteLine("插入数据:{0}",lsMain.Count);
|
|
|
|
|
XTrace.WriteLine("湿混机插入数据:{0}",lsMain.Count);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMain);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMainDetail);
|
|
|
|
|
}
|
|
|
|
@ -100,7 +100,7 @@ namespace WorkerSynReport
|
|
|
|
|
|
|
|
|
|
if (lsMain.Any())
|
|
|
|
|
{
|
|
|
|
|
XTrace.WriteLine("插入数据:{0}",lsMain.Count);
|
|
|
|
|
XTrace.WriteLine("干混机插入数据:{0}",lsMain.Count);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMain);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMainDetail);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMixerDetails);
|
|
|
|
@ -150,7 +150,7 @@ namespace WorkerSynReport
|
|
|
|
|
|
|
|
|
|
if (lsMain.Any())
|
|
|
|
|
{
|
|
|
|
|
XTrace.WriteLine("插入数据:{0}",lsMain.Count);
|
|
|
|
|
XTrace.WriteLine("糊化机插入数据:{0}",lsMain.Count);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMain);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMainDetail);
|
|
|
|
|
await dbContextHttp.InsertRangeAsync(lsMixerDetails);
|
|
|
|
|