From 17ec90e881b165e9f14f119e19053c205a747682 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Sat, 2 Apr 2022 10:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Common/FrontAuditConfigService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs index c89bff9c..d641ee57 100644 --- a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs @@ -34,7 +34,7 @@ namespace IRaCIS.Core.Application.Service [HttpPost] public async Task CopyOtherToThisItem(CopyOtherToThisItem item) { - var c = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList(); + var list = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList().GroupBy(x => new { x.ValueCN }, (key, lst) => new FrontAuditConfig { Sort = lst.Select(x => x.Sort).FirstOrDefault(),