From d8dcc47006715a0ad88513b8a1c76eef71511041 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 17 Oct 2022 16:33:04 +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 --- IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs | 2 +- IRaCIS.Core.Application/Service/Common/DictionaryService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs b/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs index 93d560664..222bc563b 100644 --- a/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs +++ b/IRaCIS.Core.Application/Service/Common/DTO/DictionaryModel.cs @@ -60,7 +60,7 @@ namespace IRaCIS.Application.Contracts [NotDefault] public Guid TrialId { get; set; } - public string Code { get; set; } + public string ParentCode { get; set; } } public class AddTrialConfigDictionaryListInDto diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index a8363ccd4..f8797025f 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -159,7 +159,7 @@ namespace IRaCIS.Application.Services [HttpPost] public async Task> GetTrialConfigDictionarySelect(GetTrialConfigDictionarySelectInDto inDto) { - var parentId = await _dicRepository.Where(x => x.Code == inDto.Code).Select(x => x.Id).FirstNotNullAsync(); + var parentId = await _dicRepository.Where(x => x.Code == inDto.ParentCode).Select(x => x.Id).FirstNotNullAsync(); List result= await _dicRepository.Where(t => t.ParentId == parentId) .OrderBy(t => t.ShowOrder).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();