Browse Source

修复期初导入问题

master
zhouhongjun 3 months ago
parent
commit
7e66497059
  1. 11
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

11
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

@ -1223,13 +1223,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// <returns></returns>
private async Task<IActionResult> BeginTran<T>(List<T> p_list, List<VmiLog> logList) where T : SE_BASE, new()
{
IServiceCollection Services = new ServiceCollection();
/*
*
*/
Services.GetConfiguration();
Services.GetRequiredService<IConfiguration>();
Services.GetRequiredService<ILoggerFactory>();
// IServiceCollection Services = new ServiceCollection();
// Services.GetConfiguration();
//Services.GetRequiredService<IConfiguration>();
//Services.GetRequiredService<ILoggerFactory>();
//var messageList = logList.Select(log => new VmiMessage { Message = JsonSerializer.Serialize(log) }).ToList();
var connectionString = this._serviceProvider.GetRequiredService<IConfiguration>().GetConnectionString("SettleAccountService");
var options = new DbContextOptionsBuilder<SettleAccountDbContext>().UseSqlServer(connectionString).Options;

Loading…
Cancel
Save