From 7c8efc6139011eb237cace313e369965266b12b7 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 30 Dec 2022 17:38:46 +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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs index bc7d60c1..0174810c 100644 --- a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs @@ -735,6 +735,16 @@ namespace IRaCIS.Core.Application.Service } + list = list.GroupBy(x => new { x.Key }, (key, lst) => new + { + DataType = lst.Max(x => x.DataType), + TableConfigJsonStr = lst.Max(x => x.TableConfigJsonStr), + Key = key.Key, + Code = lst.Max(x => x.Code), + Type = lst.Max(x => x.Type), + + }).ToList(); + var jsonDataDic = JsonConvert.DeserializeObject>(jsonStr); foreach (var item in list) {