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..7b60b55e 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,17 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables return result; } + /// + /// 获取全部 + /// + [HttpPost] + 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 5bcff4f4..08fe2b08 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 @@ -64,6 +64,17 @@ namespace Win.Sfs.SettleAccount.Entities.Controls #endregion #region CURD + /// + /// 获取全部 + /// + [HttpPost] + public async Task> GetAllAsync() + { + var entities = await _repository.GetAllAsync(true); + var dtos = ObjectMapper.Map, List>(entities); + return new ListResultDto(dtos); + } + /// /// 获取列表 ///