Browse Source

更新版本

master
zhaoxinyu 11 months ago
parent
commit
0b86086a3d
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
  2. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs

4
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<IActionResult> UpdateInvoice(string invbill, string remark)
public virtual async Task<IActionResult> 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 = "更新成功" });

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

@ -329,8 +329,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
{
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);
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;

Loading…
Cancel
Save