From 19661c5e8223c83e53229441326f3aa41c9487ad Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Tue, 4 Jun 2024 13:59:58 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Common/DictionaryService.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
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