From 0b86086a3d33e59d9130029ef8e0b63ae3474c70 Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Thu, 21 Dec 2023 10:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/INVOICE_SERVICE.cs | 4 ++-- .../Entities/BQ/VmiAppService.cs | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 22ecc801..d7d77ef9 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs @@ -602,9 +602,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ return new JsonResult(new { Code = "200", Message = "审核成功" }); } [HttpPost] - public virtual async Task UpdateInvoice(string invbill, string remark) + public virtual async Task UpdateInvoice(INVOICE_GRP_DTO p_dto) { - var sucess = await _invMng.UpdateInvoiceAsync(invbill, remark).ConfigureAwait(false); + var sucess = await _invMng.UpdateInvoiceAsync(p_dto.InvbillNum, p_dto.FileName).ConfigureAwait(false); if (sucess) { return new JsonResult(new { Code = 200, Message = "更新成功" }); diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs index b2cf0575..f6308c55 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs @@ -328,9 +328,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ public async Task 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>(entities); //var connectionString = this._serviceProvider.GetRequiredService().GetConnectionString("SettleAccountService"); //var options = new DbContextOptionsBuilder().UseSqlServer(connectionString).Options;