From d72c7c41f6939149188c54d26df1ebe9768fcb32 Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Thu, 21 Dec 2023 10:02:01 +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 --- .../src/SettleAccount.Application/Entities/BQ/VmiAppService.cs | 2 ++ 1 file changed, 2 insertions(+) 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 bf8b5446..b2cf0575 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 @@ -229,6 +229,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var totalCount = await _vmiBalanceSumDetailRepository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false); var dtos = _maper.Map, List>(entities); + dtos=dtos.OrderByDescending(p => p.BillTime).ToList(); return new PagedResultDto(totalCount, dtos); } @@ -261,6 +262,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ //var totalCount = await _vmiBalanceSumDetailRepository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false); var dtos = _maper.Map, List>(entities); + dtos=dtos.OrderByDescending(p => p.BillTime).ToList(); var fileName = $"库存余额_{DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}.xlsx"; var content = this.GetContent(dtos, "库存余额");