From b8f7427578c6459edb0ec4d6126398ac209474d8 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Wed, 7 Dec 2022 17:45:35 +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/Inspection/FrontAuditConfigService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs index 07a60cff..f026a35b 100644 --- a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs @@ -783,14 +783,17 @@ namespace IRaCIS.Core.Application.Service var jsonObject = JObject.Parse(arraysItem.ToString()); try { - + if (jsonObject["DictionaryCode"].ToString() != string.Empty) + { + jsonObject[item.Code]= await _dictionaryRepository.Where(x => x.Code == jsonObject["DictionaryCode"].ToString()).Join(_dictionaryRepository.Where(x => x.Code == jsonObject[item.Code].ToString()), a => a.Id, b => b.ParentId, (a, b) => new { value = b.ValueCN }).Select(x => x.value).FirstOrDefaultAsync(); - + } jsonList.Add(jsonObject); + } catch (Exception)