|
|
@ -328,9 +328,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
public async Task<string> BalanceSumExport(RequestDto input) |
|
|
|
{ |
|
|
|
var entities = await _vmiBalanceSumRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount, true).ConfigureAwait(false); |
|
|
|
// var totalCount = await _vmiBalanceSumRepository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
// var totalCount = await _vmiBalanceSumRepository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false);
|
|
|
|
if (entities.Count > 1000000) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("导出行数超过100W不能导出,请重新录入查询条件导出", "400"); |
|
|
|
} |
|
|
|
var dtos = _maper.Map<List<VmiBalanceSum>, List<VmiBalanceSumMainDto>>(entities); |
|
|
|
//var connectionString = this._serviceProvider.GetRequiredService<IConfiguration>().GetConnectionString("SettleAccountService");
|
|
|
|
//var options = new DbContextOptionsBuilder<SettleAccountDbContext>().UseSqlServer(connectionString).Options;
|
|
|
|