diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index ff7a8fe42..f7e83abf2 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -87,6 +87,18 @@ namespace IRaCIS.Application.Services return ResponseOutput.Ok(entity.Id.ToString()); } + /// + /// 获取所有字典的Key + /// + /// + [HttpPost] + public async Task> GetAllDictionaryKey() + { + var result =await _dicRepository.Where(t => t.ParentId == null).OrderBy(x=>x.Code).Select(x => x.Code).ToListAsync(); + + return result; + + } /// /// 添加字典 的同时 一起添加子项 --New