diff --git a/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Inspection/FrontAuditConfigService.cs index bc7d60c19..0174810cb 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) {