From 44e05180c5de74e216c80369c62c73d1193e0433 Mon Sep 17 00:00:00 2001 From: "{872297557@qq.com}" <872297557@qq.com> Date: Wed, 18 Jan 2023 11:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DQC=20=20=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=B1=BB=E5=9E=8B=20=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=9B=BD=E9=99=85=E5=8C=96=20=20=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E4=B8=8D=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/DictionaryService.cs | 8 ++++---- .../Service/Common/Interface/IDictionaryService.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index 4634797a0..7188c9f54 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -187,10 +187,10 @@ namespace IRaCIS.Application.Services /// /// [HttpPost] - public async Task>> GetBasicDataSelect(string[] searchArray) + public async Task>> GetBasicDataSelect(string[] searchArray) { - var searchList = await _dicRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); + var searchList = await _dicRepository.Where(t => searchArray.Contains(t.Parent.Code) && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); return searchList.GroupBy(t => t.ParentCode).ToDictionary(g => g.Key, g => g.OrderBy(t => t.ShowOrder).ToList()); @@ -201,9 +201,9 @@ namespace IRaCIS.Application.Services /// /// /// - public async Task> GetBasicDataSelect(string searchKey) + public async Task> GetBasicDataSelect(string searchKey) { - var searchList = await _dicRepository.Where(t => t.Parent.Code == searchKey && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); + var searchList = await _dicRepository.Where(t => t.Parent.Code == searchKey && t.ParentId != null && t.IsEnable).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); return searchList; } diff --git a/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs b/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs index 6ff953c7d..a30dfd5b1 100644 --- a/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/Interface/IDictionaryService.cs @@ -33,7 +33,7 @@ namespace IRaCIS.Application.Interfaces /// Task GetBasicDataTranslateItem(string parentCode, T childCode); - Task>> GetBasicDataSelect(string[] searchArray); + Task>> GetBasicDataSelect(string[] searchArray); } }