|
@ -119,6 +119,16 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase |
|
|
//转换Dictpj
|
|
|
//转换Dictpj
|
|
|
await dictConverter.ConvertAsync(dictpjOutsFromExternalList).ConfigureAwait(false); |
|
|
await dictConverter.ConvertAsync(dictpjOutsFromExternalList).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger.LogInformation($"Read ErpLocation");//ERP库位
|
|
|
|
|
|
var ErpLocationReader = workerContext.ServiceProvider.GetRequiredService<ErpLocationReader>(); |
|
|
|
|
|
var ErpLocationConverter = workerContext.ServiceProvider.GetRequiredService<ErpLocationConverter>(); |
|
|
|
|
|
//读取并保存ErpLocationItem
|
|
|
|
|
|
var erpLocationFromExternalList = await ErpLocationReader.ReadAsync().ConfigureAwait(false); |
|
|
|
|
|
//转换ErpLocationItem
|
|
|
|
|
|
await ErpLocationConverter.ConvertAsync(erpLocationFromExternalList).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger.LogInformation($"Read Customer");//客户资料
|
|
|
Logger.LogInformation($"Read Customer");//客户资料
|
|
|
var CustomerReader = workerContext.ServiceProvider.GetRequiredService<CustomerReader>(); |
|
|
var CustomerReader = workerContext.ServiceProvider.GetRequiredService<CustomerReader>(); |
|
|
var CustomerConverter = workerContext.ServiceProvider.GetRequiredService<CustomerConverter>(); |
|
|
var CustomerConverter = workerContext.ServiceProvider.GetRequiredService<CustomerConverter>(); |
|
|