From 3575818ba0a66419c0c10effcbfb8ddfb8ce6fc5 Mon Sep 17 00:00:00 2001 From: mahao Date: Fri, 14 Jul 2023 15:21:13 +0800 Subject: [PATCH] =?UTF-8?q?CodeSettingAppService=20GetAll=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CodeSettingTables/CodeSettingAppService.cs | 13 +++++++++++++ .../Controls/CentralizedControlAppService.cs | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs index 46e5b8e2..7d89918f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs @@ -24,6 +24,7 @@ using Win.Sfs.SettleAccount.CommonManagers; using Win.Sfs.SettleAccount.Constant; using Win.Sfs.SettleAccount.Entities.BQ.Dtos; using Win.Sfs.SettleAccount.Entities.CodeSettings; +using Win.Sfs.SettleAccount.Entities.Controls; using Win.Sfs.SettleAccount.Entities.ImportMap; using Win.Sfs.SettleAccount.ExcelImporter; using Win.Sfs.Shared.CacheBase; @@ -108,6 +109,18 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables return result; } + /// + /// 获取全部 + /// + /// 实体DTO列表 + [HttpGet] + public async Task> GetAllAsync() + { + var entities = await _repository.GetAllAsync(true); + var dtos = ObjectMapper.Map, List>(entities); + return new ListResultDto(dtos); + } + /// /// 获取列表 /// diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs index d37e933c..26498e92 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Controls/CentralizedControlAppService.cs @@ -65,7 +65,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls #region CURD /// - /// 获取全部实体列表 + /// 获取全部 /// /// 实体DTO列表 [HttpGet]