From 5a212d794944f476b763ab58bd66766b39b99c70 Mon Sep 17 00:00:00 2001 From: wcg Date: Sun, 4 Jan 2026 10:33:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(application):=20=E5=B0=86=20GetSelectD?= =?UTF-8?q?ataListAsync=20=E6=96=B9=E6=B3=95=E8=BF=94=E5=9B=9E=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BB=8E=20PagedResultDto=20=E6=94=B9=E4=B8=BA=20L?= =?UTF-8?q?ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.Ddd.Application/YiCrudAppService.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Yi.Abp.Net8/framework/Yi.Framework.Ddd.Application/YiCrudAppService.cs b/Yi.Abp.Net8/framework/Yi.Framework.Ddd.Application/YiCrudAppService.cs index dae1a753..37418924 100644 --- a/Yi.Abp.Net8/framework/Yi.Framework.Ddd.Application/YiCrudAppService.cs +++ b/Yi.Abp.Net8/framework/Yi.Framework.Ddd.Application/YiCrudAppService.cs @@ -185,15 +185,13 @@ namespace Yi.Framework.Ddd.Application /// /// 查询关键字 /// - public virtual async Task> GetSelectDataListAsync(string? keywords = null) + public virtual async Task> GetSelectDataListAsync(string? keywords = null) { List entities = await Repository.GetListAsync(); - // 获取总数并映射结果 - var totalCount = entities.Count; var dtos = await MapToGetListOutputDtosAsync(entities); - return new PagedResultDto(totalCount, dtos); + return dtos; } ///